Re: Basic question (?php not working in html)
| From: | Ira Mica | Date: | Thu, 10 Aug 2000 15:34:17 +0000 |
| Subject: | Re: Basic question (?php not working in html) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11162@lists.php.net to get a copy of this message | ||
I should mention that my config file has the following lines:
LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php4-source .phps
</IfModule>
what about embeded php stuff like:
<HTML><BODY><?phpinfo()?></BODY></HTML>
or
<HTML><BODY><?PHP echo "Hello, Net" ?></BODY></HTML>
Thanx
At 11:29 AM 8/10/00 -0400, you wrote:
>In your apache configuration, add the following line:
>
>AddHandler application/x-httpd-php .php
>
>This tells apache to pass files ending with .php to the built in PHP
>interpreter.
>
>----- Original Message -----
>From: "Ira Mica" <iramica@yahoo.com>
>I did try to find this in the FAQ or other places but didn't...
>
>I just installed php4 (with apache on linux) and can get the following to
>work:
>if I create a file like test.php and put
><?phpinfo()?>
>in it, going to myserver/test.php with a a browser shows phpinfo.
>
>but if I try to do the following in an html file:
><HTML><BODY><?phpinfo()?></BODY></HTML>
>
>nothing happens. That is the browser shows a blank screen.
>
>
>Any idea why php might work in a php file and not in an
>html file.
>
>Thanx in advance.
>
>
>__________________________________________________
>Do You Yahoo!?
>Talk to your friends online with Yahoo! Messenger.
>http://im.yahoo.com
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com