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(
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
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.
>
>
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 Maili
* 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 sort
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
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
> 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 com
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 that's something, but is it anything really significant.
True, it doesn't do anything other than output the HTML. But it's that
"load - scan - determ
AIL PROTECTED]
> Sent: Monday, October 25, 2004 11:30 AM
> To: [EMAIL PROTECTED]
> 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 whic
Sent: 25 October 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 i
> 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
http://h
[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 Gen
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 |
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
--
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
Thanks
when using eg. apache, you can add a .htaccess file with the following line:
AddType application/x-httpd-php .html
That will overwrite the "normal" w
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
: Jeff Armstrong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] files with html extension
Jeff Armstrong wrote:
> This is exactly why http://www.w3.org recommend that you DONT
> SPECIFY A FILE TYPE TYPE in your HREFs.
But doth that actually work - how many web servers are able to handle this
t
Jeff Armstrong wrote:
> This is exactly why http://www.w3.org recommend that you DONT
> SPECIFY A FILE TYPE TYPE in your HREFs.
But doth that actually work - how many web servers are able to handle this type
of link correctly?
Ummm... and what happens (or is supposed to happen) to resolve xx
>I recommend people don't do this unless their web server is going
>to serve only(or mostly) php pages, and very few straight html pages.
>the increase in overhead isn't really worth it.
I've tried this in many real-world examples.
I have PHP parsing ALL files on ALL of my 8 Linux servers.
>From the doc:
---
How can I remove the file extensions...
...from my URIs in a practical file-based web server?
If you are using, for example, Apache, you can set it
up to do content negotiation.
--
How is this done?
Jeff Oien
> On 3/20/2001 at 6:49 PM Jeff Armstrong
This is the best idea I've heard/read yet. Thanks Jeff!
Rick VanNorman
*** REPLY SEPARATOR ***
On 3/20/2001 at 6:49 PM Jeff Armstrong wrote:
> This is exactly why http://www.w3.org recommend that you DONT
> SPECIFY A FILE TYPE TYPE in your HREFs.
>
> Cool URIs Dont change - htt
hp or even
xxx.my_new_language_of_the_moment.
};
Jeff
-Original Message-
From: Phillip Bow [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 6:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] files with html extension
Personally I recommend people don't do this unless their web
Personally I recommend people don't do this unless their web server is going
to serve only(or mostly) php pages, and very few straight html pages. It
will save you time mucking around on the server, but the increase in
overhead isn't really worth it. IMHO of course.
--
phill
--
PHP General Ma
for php4:
AddType application/x-httpd-php .html
for php3:
AddType application/x-httpd-php3 .html
On Tue, 20 Mar 2001 10:12:56 -0800, Rick VanNorman
([EMAIL PROTECTED]) wrote:
>On 3/20/2001 at 12:29 PM Jack Dempsey wrote:
>
>>You can tell apache to have the php interpreter parse files with an
>>h
On 3/20/2001 at 12:29 PM Jack Dempsey wrote:
>You can tell apache to have the php interpreter parse files with an html
>extension, thereby letting you use the tags in html files...whether
>this
>is a good solution or not is another question.that would mean that each
>file would get parse
-Original Message-
From: Rick VanNorman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] files with html extension
Hi,
Is is possible to use the php script tags in files with an
html extension? I'm running 4.0.4pl1 and apache 1.3.12
on Op
Hi,
Is is possible to use the php script tags in files with an
html extension? I'm running 4.0.4pl1 and apache 1.3.12
on OpenBSD 2.8.
Thanks,
Rick VanNorman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
28 matches
Mail list logo