Chapter 4: |
|
|
Here, I'm referring to the requirements for your Web host. These are things you'll need to have in place before running any scripts written in PHP. The more of these items that can be verified and checked off your list before you begin, the smoother and quicker the installation will be. When you're installing a script/program/page written in PHP, you may need to know which version of PHP is installed on the server. It may or may not be compatible with your script or program! This doesn't happen often, and most any script you find online will tell you if it needs a certain version of PHP. For those of you who are really serious about learning PHP, I strongly recommend that you get a book that comes with a CD-ROM. This CD-ROM should have the code described in the book, a PHP interpreter and other supporting files that you can install on your own PC. Once you've installed this code, you can write and, more importantly, debug PHP scripts before you try to install them on your Web server. In many cases, the CD-ROM will also include a "web server" program that you can use to make your PC act like a web host. This will give you a total web environment where you can verify all of your code's behavior before you upload it to your own site. No one will ever see your mistakes (if you made any...<grin>). |
The Root path |
|
Some scripts will need to know the "root path". Most will work using a "virtual" or "relative" path, but others won't. Get this information from your host administrator. Be sure they give you the actual path. Sometimes the diagnostic scripts return a virtual path. |
The PHP environment |
|
Here is a list of the standard environment variables: |
| Previous Page Table of Contents Next Page |
Copyright © 2004 Steve Humphrey |