[PHP] Php files with .html extension?

2004-10-25 Thread Phpu
Hi, How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html Thanks

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 16:37:52 +0300, Phpu [EMAIL PROTECTED] wrote: How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html If you use Apache you can edit you httpd.conf and add: AddType application/x-httpd-php .html --

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Brian V Bonini
On Mon, 2004-10-25 at 09:37, Phpu wrote: Hi, How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html AddType application/x-httpd-php .php .php3 .html -- s/:-[(/]/:-)/g BrianGnuPG - KeyID: 0x04A4F0DC | Key

RE: [PHP] Php files with .html extension?

2004-10-25 Thread Jay Blanchard
[snip] How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html [/snip] You set it up in your httpd.conf You should have AddType application/x-httpd-php .php change it to AddType application/x-httpd-php .php .html -- PHP

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Matt M.
How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html apache could do this a couple ways http://httpd.apache.org/docs/mod/mod_mime.html#addhandler http://httpd.apache.org/docs-2.0/mod/core.html#setinputfilter

RE: [PHP] Php files with .html extension?

2004-10-25 Thread Graham Cossey
2004 14:59 To: [EMAIL PROTECTED] Subject: RE: [PHP] Php files with .html extension? [snip] How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html [/snip] You set it up in your httpd.conf You should have AddType

RE: [PHP] Php files with .html extension?

2004-10-25 Thread Gryffyn, Trevor
] Subject: RE: [PHP] Php files with .html extension? Do not forget that if you do this ALL files with the .html extension will be parsed by PHP whether they are PHP scripts or not which could be something you need to consider from a performance perspective. -Original Message- From

Re[2]: [PHP] Php files with .html extension?

2004-10-25 Thread Richard Davey
Hello Trevor, Monday, October 25, 2004, 4:47:53 PM, you wrote: GT processed by PHP? I mean, if the PHP parser goes through and never sees GT a ? Or ?php, does it do any more than just output the file? True, GT that's something, but is it anything really significant. True, it doesn't do

RE: Re[2]: [PHP] Php files with .html extension?

2004-10-25 Thread Gryffyn, Trevor
True, it doesn't do anything other than output the HTML. But it's that load - scan - determine - output that takes up CPU time and memory. Sure, on most sites it doesn't matter one bit. But on popular sites.. well, you can do the math I'm sure. I guess at the end of the day it comes down

Re[4]: [PHP] Php files with .html extension?

2004-10-25 Thread Richard Davey
Hello Trevor, Monday, October 25, 2004, 6:31:07 PM, you wrote: GT I could see someone wanting to use .html to obscure the fact that GT they were using PHP scripts (for various reason), but if that's GT intended as a security measure, then it's classic security through GT obscurity, which will

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 16:30:14 +0100, Graham Cossey [EMAIL PROTECTED] wrote: Do not forget that if you do this ALL files with the .html extension will be parsed by PHP whether they are PHP scripts or not which could be something you need to consider from a performance perspective. I setup a

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Curt Zirzow
* Thus wrote Greg Donald: The summary results: For 10K local requests: 27.1 seconds with .html not parsed as PHP vs. 30.2 seconds with .html parsed as PHP. I only ran these tests locally, and only on the one server.. so it's definatly not very scientific. I think we all sorta knew

Re: [PHP] Php files with .html extension?

2004-10-25 Thread zooming
On a related note I was wondering what people thought of php files with no extensions? So if I changed index.php to just index then I can create url like www.mydomain.com/index/articleid/29 so it's search engine friendly. # .htaccess file DefaultType application/x-httpd-php -- PHP General

Re: [PHP] Php files with .html extension?

2004-10-25 Thread The Snake from Hell!
You would probably brake a heck of a lot of things. CGI scripts, etc. On a related note I was wondering what people thought of php files with noextensions? So if I changed index.php to just index then I can create urllike www.mydomain.com/index/articleid/29 so it's search engine friendly. #

Re: [PHP] Php files with .html extension?

2004-10-25 Thread zooming
I don't use cgi scripts. - Original Message - From: The Snake from Hell! [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 25, 2004 4:25 PM Subject: Re: [PHP] Php files with .html extension? You would probably brake a heck of a lot of things. CGI scripts, etc

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 18:44:41 +, Curt Zirzow [EMAIL PROTECTED] wrote: Nice work! I wonder what the stats would be like with apache2 :) Suse 9.1 box: cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 4 model name : AMD Athlon(tm)