Re: php code inside html doesn't work
| From: | Fred | Date: | Fri, 30 Nov 2001 00:59:43 +0000 |
| Subject: | Re: php code inside html doesn't work | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5138@lists.php.net to get a copy of this message | ||
What do you mean by php code inside an html file? Do you mean that the file
has an html extension (e.g. index.html)? If that is the case then you need
to change your php.ini file to indicate that all html files should be
processed by php. Alternately, you could just change the extension to .php
and everything will work just fine.
Fred
Byunsung Cho <bscho@utah3d.com> wrote in message
news:20011130004739.36340.qmail@pb1.pair.com...
> Thanks to many netters, I have found running php.exe from command line
> works.
> I feel that I need to take introductory Windows class again. :)
>
> I am using Php 4, IIS on Windows 2000.
> Now, I can have a web broweser open a file with .php file extension and
> php codes inside the file works fine.
>
> However, php code embedded inside a html file does not work.
> Simple print statement does not show anything on screen.
>
> Would you please help me what to check to solve the problem?
>
> -Cho
>
>
>