On Wed, 03 Aug 2005 13:34:09 +0200, Martin <news@natten-i.dk> wrote:
>du skal sætte PATH i "dos" til dit PHP dir
>og smække denne i din httpd.conf (Apache serverens config fil)
Ehm, PATH har næppe noget med hvor Apache kigger efter php.ini.
http://dk2.php.net/manual/en/configuration.php nævner:
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)
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry
location)
* The PHPRC environment variable
* Current working directory (for 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
Det letteste vil sandsynligvis være at sætte PHPRC i httpd.conf, fx:
SetEnv PHPRC c:/sti/til/mappe
En phpinfo() viser i øvrigt, hvilken php.ini, der benyttes.
--
- Peter Brodersen