RE: [PHP] Basic question (?php not working in html)
| From: | Ira Mica | Date: | Thu, 10 Aug 2000 15:59:44 +0000 |
| Subject: | RE: [PHP] Basic question (?php not working in html) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11168@lists.php.net to get a copy of this message | ||
At 11:49 AM 8/10/00 -0400, Chad wrote:
>If you mean you are putting php into a .html file, no, it is not going to
>work, unless you tell Apache to parse .html files as php files. If you need
>to use php in a file, do it in a .php file, not a .html file.
Chad.. you might be on to something.
From some tuturial on the web I got the following example:
<HTML><BODY><? PHP echo "Hello, Net" ?></BODY></HTML>
which gave me the impression that I can embed php code inside
html. And the http server would parse parts of the html page
as php and the rest as html, giving me a way to insert stuff
into the html page on the fly.
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com