[PHP] Re: PHP within .html files

2001-08-16 Thread Marc Hanlon

It's not very usual for the simple reason that many people who have access
to a PHP web server don't use it, they just use normal HTML. The problem
with having HTML execute as PHP is that it uses the PHP module when it
mightn't need to. On my webserver the extensions which are parsed as PHP are
.php and .php3, I think this is the normal setup for web servers.

Marc.

P.s. Would u not like to show your support for PHP by displaying the .php
extension?

Paul S. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 My UNIX apache server that I host from seems to be preset to execute PHP
 code within html docs. That is, a php require statement within a .html
 file is included, executed,  and sent to the browser.

 Is this unusual? or standard? I ask because I would hope not to become
 dependent on including php code in html docs and have them switch a
 server setting back.

 Of course, if that happens I guess I could rename my files from .html
 to .php. But I really prefer to just having .html appear in the
 browser URL bar.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP within .html files

2001-08-16 Thread Chris Hayes

 It's not very usual for the simple reason that many people who have access
 to a PHP web server don't use it, they just use normal HTML. The problem
 with having HTML execute as PHP is that it uses the PHP module when it
 mightn't need to. On my webserver the extensions which are parsed as PHP are
 .php and .php3, I think this is the normal setup for web servers.
 
 Marc.
 
 P.s. Would u not like to show your support for PHP by displaying the .php
 extension?


Mayhaps with Apache it is possible to have the .html files in a subdirectory 
(for instance yourdomain.org/php/file.html to have the php mentioned) 
handled as PHP and the other dirs not. I agree that it is a waste of server 
time to send all html files through php.

Chris




--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --


 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]