Re: php problem
| From: | Jochem Maas | Date: | Thu, 06 Jan 2005 13:13:18 +0000 |
| Subject: | Re: php problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37999@lists.php.net to get a copy of this message | ||
Serenity Schindler wrote:
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.