hollymcr
User
| Posts: 14 |   |

|
Detecting the PHP CLI path - 2006/05/15 11:56
I just installed Swisscenter on a WAMP (Win/Apache/MySQL/PHP) platform, and for some reason its attempts (via file.php hp_cli_location) to determine the path to php.exe were failing (I guess because I'm running an Apache module not CLI).
My fix was to insert:
| Code: | if ( defined("PHP_CLI_PATH") )
return PHP_CLI_PATH;
|
.. at the start of that function, then define the full path to php.exe in the swisscenter.ini file.
I'm not sure if that's the best method, but if it helps anyone else...
Player : Lite-On LVD-2010 (wired ethernet) Server : Apache2/PHP5 on Win2k running on Athlon XP, 1Gb RAM, 1 Tb storage. |