You are here: Re: htm vs. php problem « PHP Programming Language « IT news, forums, messages
Re: htm vs. php problem

Posted by Erwin Moller on 12/18/06 16:50

Andrew wrote:

> The company I work for uses .htm extensions with their php code. There
> is one page which has quite a few querys that I am having problems
> with. With the .htm extension it will take 30+ seconds to load the
> page and, for example, will pull approx 30 rows from the db. If I just
> change the extension to .php, it takes less than 1 second to load the
> same page, and will pull over 300 rows from the db. Any ideas why this
> is happening?

Hi Andrew,

That is strange indeed.
One would expect that this makes little difference indeed.

Please give us some more info.
Are you using a real httpserver (Apache eg)? Or is this happening on IIS?

Will a .htm extension of any request to the server fire additional processes
for parsing? (Some excotic CMS maybe that fiddles around?)
Some (broken) caching mechanism at work maybe for htm-extension only and not
for phpextension?

I can only guess.

Whatever the reason, I think something is set up awkwardly in your company.
If you feel adventurous, fix it.

And of course, stopping to use html extension to execute PHP makes sense
too...
Use .php for php. Why change such a thing?

Regards,
Erwin Moller

 

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

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