Also if I run a php page with:
<?
phpinfo();
?>
The configuration File path shows as:
Configuration File (php.ini) Path C:\WINDOWS\
By the way my httpd.conf file is configured as follows:
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP/"
Also If I take into account the following:
PHP searches for php.ini in the following locations (in order):
PHPIniDir directive (Apache 2 module only)
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
The PHPRC environment variable
Directory of PHP (for CLI), or the web server's directory (for SAPI modules)
Windows directory (C:\windows or C:\winnt)
The last placed it looked for the php.ini file was in Windows as that is what it's showing.
Also I believe for it to be correct it should be showing:
Configuration File (php.ini) Path C:\WINDOWS\ php.ini
But as the php.ini file is not there it is only showing:
Configuration File (php.ini) Path C:\WINDOWS\
Could somebody confirm if this is true? that if it's using the php.ini file from windows PHPinfo should show:
Configuration File (php.ini) Path C:\WINDOWS\ php.ini
Either way, I then decide to place the php.ini file in windows,restart service, clear cache, and run the phpinfo again, and I can not see no modification what so ever. The configuration file still is showing as:
Configuration File (php.ini) Path C:\WINDOWS\
I do the same test for all the other locations where php.ini is searched for:
As I configured my apache 2 httpd.conf file to
PHPIniDir "C:/PHP/"
I place the php.ini file there, restart service,clear cache. And still the phpinfo says:
Configuration File (php.ini) Path C:\WINDOWS\
When I would of though it should of said something along the line of: ... Path C:\php\php.ini would this be true??
Anyway still trying to figure out why apache 2 server is still running php pages when it doesn't seem to find any php.ini file what so ever.
I do need this php.ini file to be detected as I need to configure this!!
Any suggestions are more than welcome!
Cheers!!