|
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
[Back to original message]
|