I am new to php and have no idea what I'm doing wrong. I have a file named test.php containing:
<html>
<head>
<title> PHP Test </title>
</head>
<body>
<p>This is an HTML line
<p>
<?php
echo "This is a PHP line";
phpinfo();
?>
</body>
</html>
The html lines show up just fine but none of the php info is displayed. Any ideas?
does your page show you the text "This is a PHP line"?
if you view the source of the page in your browser do you see the following:
<?php echo "This is a PHP line"; phpinfo(); ?>
if so then PHP is not either:
1. your webserver is not configured to use php to handle files with a php extension.
2. your webserver does not have php installed.
if not then try a file containing just the following and see if that outputs anything:
<?php phpinfo(); ?>
~Serenity~
--------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php