Datasheet

P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Getting Up and Running
Figure 1-19
Did the le you tested work? Or are you reading this section right now because the le didnt
work? Dont worry; its very common for problems to occur anytime you try something new,
especially when it comes to computers and programming. In fact, consider yourself lucky if it didnt
work because youll learn a lot more about PHP and programming from your mistakes than from your
successes.
So lets start at the beginning. Troubleshooting and debugging comprise the process of
identifying problems, deducing possible causes, logically isolating those causes until youve identied
the most likely culprit, and then trying solutions. The end result is that the problem is xed and if youve
done a good job, youll have xed the problem (in an elegant, robust way) without causing other
problems.
Chapter 5 covers debugging in more detail; for now, though, lets look at the steps for troubleshooting
your installation of PHP:
1. Check that the Web server is on and running properly. In Windows 2000, do this by checking
Services (Start
Programs Administrative Tools Services), specically Internet Admin
Services and World Wide Web Publishing Service. Just because these are set to Automatic
27