View Single Post
Old November 4th, 2006, 12:54 AM   #20 (permalink)
Rick
Surpass Fan
Comfy Contributor
 
Rick's Avatar
 
Joined in Sep 2004
Hosted on Pass42
282 posts
Gave thanks: 4
Thanked 51 times
Quote:
Originally Posted by franwald View Post
I created a blank .php file and entered <?php phpinfo() ?> in it and saved in as "phpinfo.php".
I then uploaded it to the public_html folder on my server.
I opened my browser and typed in the address http://sassydesktops.com/phpinfo.php and when the page opened it showed a blank page with <?php phpinfo() ?> written on it.
Where did I go wrong?
It's still there if you want to try it.
Frank
Frank
I looked at this and got the same thing. However, when I looked at the "Page Source" I saw the following:

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
&lt;?php phpinfo() ?&gt;
</body>
</html>
It looks like this was created with some type of HTML editor that automatically added all the markup info. Try just using a plain text editor to create the file with only <?php phpinfo() ?> in it.
__________________
Rick is offline   Reply With Quote