Re: php inside the html?
| From: | Paul Smith | Date: | Mon, 16 Jul 2001 20:14:48 +0000 |
| Subject: | Re: php inside the html? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8337@lists.php.net to get a copy of this message | ||
In order for any php tag to be acted upon, the server needs to know to look for it. If you're
putting PHP tags in HTML documents it will not look for them and therefore will
not act on them. What you need to do is either set up your server to process HTML files (which slows
the server down a lot if you don't have many HTML pages with php in
them) or you can rename all your HTML files that have PHP tags in them to .php. I hope that made
sense. Reply if you have any problems.
Lukas Noskievic wrote:
> Can you anybody help? I can't run the script inside the html document.
>
> <body>
> <? echo "Hello world" ?>
> </body>
>
> Pages written in php and saved as xxx.php works good so i think php.ini and httpd.conf (Apache
> WebServer) are OK. Section 'short_open_tag' in php.ini is setting to 'on'.
>
> Please help...
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Paul Smith
psmith@dostuff.net
http://www.dostuff.net