Prev | Current Page 91 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

If you??™re
attempting to run this script on a Web hosting provider??™s server, and you receive an error
message stating phpinfo() has been disabled for security reasons, you??™ll need to try
24 CHAPTER 2 ?–  CONFIGURING YOUR ENV IRONMENT
executing another script. Try executing this one instead, which should produce some
simple output:
echo "A simple but effective PHP test!";
?>
?– Tip Executing the phpinfo() function is a great way to learn about your PHP installation, as it offers
extensive information regarding the server, operating system environment, and available extensions.
Figure 2-3. Output from PHP??™s phpinfo() function
If you encountered no noticeable errors during the build process but you are not
seeing the appropriate output, it may be due to one or more of the following reasons:
CHAPTER 2 ?–  CONFIGURING YOUR EN V IRONMENT 25
??? Changes made to Apache??™s configuration file do not take effect until it has been
restarted. Therefore, be sure to restart Apache after adding the necessary PHPspecific
lines to the httpd.conf file.
??? When you modify the Apache configuration file, you may accidentally introduce
an invalid character, causing Apache to fail upon an attempt to restart. If
Apache will not start, go back and review your changes.
??? Verify that the file ends in the PHP-specific extension as specified in the
httpd.conf file. For example, if you??™ve defined only .


Pages:
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103