|
Posted by Petr Vileta on 12/19/06 04:55
"Andrew" <aiithak@gmail.com> píse v diskusním príspevku
news:1166459070.060246.38360@j72g2000cwa.googlegroups.com...
> 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?
>
Maybe you have bad configured server. If you use Apache then search some
like this
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
and add there .htm extension too.
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml .htm
AddType application/x-httpd-php-source .phps
</IfModule>
But be carefull then other realy static html pages have different extension
eg. .html.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
Navigation:
[Reply to this message]
|