You are here: Re: hidden php file extension « PHP Programming Language « IT news, forums, messages
Re: hidden php file extension

Posted by Henrik Hansen on 03/22/06 11:20

youcantoo <dwm@findmoore.net> writes:

> Henrik Hansen wrote:
>> Badr.ALmuzini@gmail.com writes:
>>
>>> hi,there
>>>
>>> how can i make php file extension hidden in the URL somthing like this
>>> (http://mail.google.com/mail/?view)
>> If you do this the parameter ?view is appended the index.php file in
>> that dir, so it's quite easy, just make sure your index.php
>> understands ?view. Another way is to make .html (.htm) files to be
>> parsed as php, then you have index.html but you can actually use php
>> in the file.
>>
> That is not really a good idea as it puts a hugh load on the
> server. Now for EVERY .html page apache servers it will have to parse
> each .html page for php script, even if the page has no php script in
> it. This really increases the load on the server. It all translates to
> SLOWER pages. Is that what you really want to achieve?

Do you have any banchmarks for your claims? I use this way and can't
really see any difference at all to be honest. Parsing pages to see if
there is php in it goes VERY fast. Ofcource everything is relative but
in general I think it's a good way of masking files.

You could also just turn it on on the php folders if you have seperate
static content folders, so they dont get treatet as php.

--
Henrik Hansen

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация