Testing your installation of PHP is really as simple as writing a small PHP program and running it. Create a small PHP file to use for tests. Write the following code in it:
<?php echo "Hey, it worked"; ?>
Save the file as test02.php in any folder within wwwroot (or an appropriate folder if you happen to be running some other OS/Web server combination than Windows 2000/IIS).
Open the file in your browser. You should see the words "Hey, it worked" in your browser. If you see "Page cannot be displayed," there's a problem with your PHP installation or with finding the file, or with the Web server. If you see something that talks about a parse error, you may have made a mistake in entering the code. Coding errors are discussed in more detail in the next few chapters, but in the next section you'll explore some ways you can troubleshoot your basic installation of PHP.
Did the file you tested work? Or are you reading this section right now because the file didn't work? Don't worry; it's 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 didn't work because you'll learn a lot more about PHP and programming from your mistakes than from your successes.
So let's start at the beginning. Troubleshooting and debugging comprise the process of identifying problems, deducing possible causes, logically isolating those causes until you've identified the most likely culprit, and then trying solutions. The end result is that the problem is fixed and if you've done a good job, you'll have fixed the problem (in an elegant, robust way) without causing other problems.
Chapter 5 covers debugging in more detail; for now, though, let's look at the steps for troubleshooting your installation of PHP:
It's likely that following these steps will isolate the problem so that you can fix it.
ALTER SERVER Syntax
ALTER SERVER server_name
OPTIONS (option [, option] ...)
Alters the server information for server_name, adjusting any of the options permitted in the CREATE SERVER statement. The corresponding fields in the mysql.servers table are updated accordingly. This statement requires the SUPER  privilege.
For example, to update the USER option:
ALTER SERVER s OPTIONS (USER 'sally');
ALTER SERVER does not cause an automatic commit.
|copyright © dedserveronline.com|