Re: Perplexed - wont parse <?php ?> tags in htm

From: Date: Wed, 29 Jun 2005 03:25:36 +0000
Subject: Re: Perplexed - wont parse <?php ?> tags in htm
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-16391@lists.php.net to get a copy of this message
Michael, Worked it out eventually. What is obvious to everyone who has had anything to do with PHP before, not being me, and is not actually explicitly mentioned anywhere in the php.net doco that I have read, especially all the setup notes and tutorials, is that the standard setup only works for files with a .php extension, not a .html extension. Its blindingly obvious now I know, but if you read the doco as a PHP virgin, it isnt obvious at all. Cheers, Steve. ""Michael W."" <phplist@mew.ssxh.net> wrote in message news:42C15D16.6090000@mew.ssxh.net... > Did you tell Apache to parse .php files as PHP? (By adding something like > "AddType application/x-httpd-php .php" (without the quotes) to httpd.conf) > Fred wrote: > >>Apache 2.0.49 (Win32) PHP/5.0.5-dev - XPSP2 >>New to PHP. >>I have done everything I think I need to do to get PHP5 working. >>I can link to and execute file.php scripts just fine, but scripts imbedded >>with <?php ... ?> in html files are not parsed/executed. >>I must have missed something really simple - but I can't find it. >>Any ideas? >> >>TIA >> >>Fred. >> >> >>

« previous php.install (#16391) next »