Install PHP
We will now install and configure your PHP.
PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
PHP stands for PHP: Hypertext Preprocessor. This confuses many people because the first word of the acronym is the acronym. This type of acronym is called a recursive acronym.
- Unzip the install file. EX: c:\disks\php\php-4.3.2-Win32.zip
- Create the php directory c:\php
- Copy the contents of the zip file into c:\php, the php.exe program should be in c:\php\
- Copy the contents of the dll directory to your system32 directory (ex: c:\winnt\system32)
- Copy 'php4ts.dll' to your system32 directory (ex: c:\winnt\system32)
- Copy c:\php\php.ini-dist to c:\php\php.ini and open this file in a text editer.
- Locate the section for "Paths and Directories" and change the ;include_path = to 'include_path = ".;/php/pear"'
This will set the path for PHP to look for files. First it will look in the current directory and this will also allow you to use PEAR tools.
- Locate the 'register_globals' variable and insure it is set to 'register_globals = On'. NOTE: For a production server it is safer to have this set to off, but for development I have found many times that other programmers do not code for this, so I must keep it on.
- Locate the 'extension_dir' variable and insure that it is set to 'extension_dir = C:/php/extensions/', this will allow PHP to find the extentions.
- Locate the 'SMTP' varable and modify this to your needs. This is the server that will send out emails in PHP. In most cases you can set this to you mail server for your web host, in other cases you may need to set this to the server of your ISP.
- Move c:\php\php.ini to your windows directory ex: c:\winnt
You are all finished installing PHP!!
|
|