\\ geekology
PHP Info
If out want to make sure that you have PHP up and running correctly on your web server, just follow these steps.
Insert the following code into a new web document in your root web directory (/srv/www/ or /home/username/public) and name it info.php. Navigate your your site, and type in sitename.com/info.php. This will let you know if PHP is installed and working properly.
To do this on Open Suse 10.3, type…
cd /srv/www/htdocs/
vi info.php
Type “i” to begin editing the file.
Copy and paste the following into the document…
<html>
<head>
<title>PHP Info</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
Now type in http://www.yourwebsite.com/info.php to see the PHP info document. If it shows up, it proves that your server is running PHP correctly.
