Quote:
Originally Posted by franwald
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>
<?php phpinfo() ?>
</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.