Reply to Re: htm vs. php problem

Your name:

Reply:


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.)

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

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