Re: php doesn't work in html files
| From: | Stuart | Date: | Sun, 11 Jan 2004 13:30:17 +0000 |
| Subject: | Re: php doesn't work in html files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174235@lists.php.net to get a copy of this message | ||
Nico Berg wrote:
Hi there all, This index.html look's like this: <html> <body> This is a line </body> </html> <? echo "this is the second line"; ?> Output is: This is a line So the php part is not done at all. Is that right? I always believed php should work in html?Assuming you have the web server set up according to PHP's installation docs, you either need to rename index.html to index.php or tell the web server to run .html files through PHP (refer to the PHP manual for details on how to do this). -- Stuart