Paths, Windows and PHP

From: Date: Mon, 20 Aug 2001 14:39:02 +0000
Subject: Paths, Windows and PHP
Groups: php.windows 
Request: Send a blank email to php-windows+get-8950@lists.php.net to get a copy of this message
To solve the questions about where to copy your PHP dll directory files I have put together a simple set of instructions that will help get things so that Windows can find them *without* you having to copy them anywhere. Please note, you still have to tell PHP in php.ini where the extension directory is. This document only covers those files located in the "dll" directory. The following instructions assume the path: C:\PHP\dll As the path to PHP's dll directory, please substitute your path below. Okie, let's get on with it: NT/2000 PATH Environment Start->Settings->Control Panel->System->Advanced ->Environment Variables There will be a list that contains all the environment variables for the current user. Scroll the list until you find the "path" entry. Click on it to highlite it. At this point do the following: 1) Click "Edit..." 2) Click on the Variable Value edit control. 3) Make sure you move the flashing cursor to the end of the current setting. 4) Enter the path to your PHP "DLL" directory. E.G: "C:\PHP\dll" with a semi-colon ";" at the end. 5) Click "Ok" 6) Click "Ok" again 7) Click "Ok" one more time. The changes take affect immediately. You will have to close and reopen any command prompts though. Windows 9x/ME PATH Environment You are going to have to edit your AUTOEXEC.BAT, it will be located in the root directory of your boot drive. In a default installation it will be: C:\AUTOEXEC.BAT Hang on, here we go: Start->Run... 1) Type: notepad c:\autoexec.bat 2) Click "Ok" If notepad asks to create the file, click "Yes". 3) Add the following line to the *end* of the file: PATH=%PATH%;C:\PHP\dll; 4) Click File->Save 5) Click File->Exit 6) Restart your system. -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org

« previous php.windows (#8950) next »