I get an empty string. http://us2.php.net/function.get_cfg_var Suggests that IF I am using a configuration file, then this will return it's value. So I can only assume that it's not using a configuration file. Now how can I find out why the hell not? Also, can I force PHP to use a specified config file during runtime?
You guys are the best! I told you you were super mods. I guess I should add this to a list of another "extremely simple thing that caused a lot of time to be wasted".
Now I just gotta figure out that PHPMailer thing but that's for another thread.
ivj wrote:I thought ini location was hardcoded when you compile?
That's only the last resort
http://de2.php.net/ini wrote: php.ini is searched in these locations (in order):
* SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD)
* The PHPRC environment variable. Before PHP 5.2.0 this was checked after the registry key mentioned below.
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
* Current working directory (except CLI)
* The web server's directory (for SAPI modules), or directory of PHP (otherwise in Windows)
* Windows directory (C:\windows or C:\winnt) (for Windows), or --with-config-file-path compile time option