You're completely correct.  On Win 2k for PHP 4

* Start | Settings | Control Panel | System
* Advanced tab
* Environment Variables button
* System Variable pane
* Find the Path entry (you may need to scroll to find it)
* Double click on the Path entry
* Add the following value where you feel is appropriate: ";c:\php;c:\php\dlls" Adjust path to the PHP dir as needed. If it's in the "Program Files" directory use "progra~1"
instead of "Program Files".
* Click OK


[It's also handy to have PHPRC set too...]

* Click New
* Enter "PHPRC" and the path to the PHP dir, just like above.
* Click the various OK buttons until you're done.

OK, what if someone has files left from a previous PHP installation? I guess if one inserts the PHP folders onto the start of the PATH, then this is not a problem (since older dlls will be later on the PATH search route).


But what if someone would like to use PHP 4 and PHP 5 in paralell? PHP 5 has all the sapi and supportive DLLs in the main folder (as well as php-cgi.exe, php-win.exe and php.exe). I guess this is done so people don't need to put the folder into the path, since the dlls, ini files and such will all be found in the same folder. Does that mean that PHP 5 users will not need to alter their PATH or PHPRC? That would mean they will be able to run PHP 4 and PHP 5 in paralell just fine.

Goba

Reply via email to