PDA

View Full Version : PHP Code Flush (Help Me)


imran_zai
08-23-2002, 11:56 AM
Dear All,

I wants to store the HTML code and send that code immediatly to the browswer.

http://www.pakissan.com/

I wants to reduce the download time of this site. If you have some idea then please tell me.

Thanking you.

firepages
08-23-2002, 03:12 PM
just adding
<?php ob_start("ob_gzhandler");?>

to the head of your pages should start output buffering and gzip'ping of your site which should make for faster access though dont expect miracles.


but check out the output buffering functions at php.net http://www.php.net/manual/en/ref.outcontrol.php

I see you have mod_perl & PHP available but are using SSI for a lot of pages, perhaps PHP would be quicker?

+ I am guessing how your front page is created, but I assume there is a lot of database activity happening there, any way you can cut down calls to the database is good.

I.E. I like to make static copies of 'dynamic' data that may only change every couple of hours or so, when an item is added or edited you can then recreate your static version etc