my website loads the background colour and then takes approx another 10 seconds to load (which is a long time seeing as I am on a ADSL connection) after the 10 seconds or so of load time the entire index.php then loads. It doesnt load it bit by bit like many phpnuke sites. Im running phpnuke 7.3
Any suggestions would be appreciated
nobleclem Lieutenant
Joined: May 27, 2003
Posts: 167
Location: Southfield, MI
Posted:
Mon Aug 09, 2004 3:30 pm
What is the page generation time?
But there are things you can do. Once I noticed is that the GZIP code in the mainfile.php doesnt work. So I have replaced that. Also I would apply the mainfile.php speedhacks as they do wonders for the page generation time.
note: if you want a package that is still php-nuke and has these speed hacks and other security hacks already installed check out my site at http://hackerassassins.com
_________________ ....Check Out These Great Sites....
if you would check it, that would be great. The splash page loads fine but as soon as it enters the nuke you will see. It loads background first and then everything else later.
nobleclem Lieutenant
Joined: May 27, 2003
Posts: 167
Location: Southfield, MI
Posted:
Thu Aug 12, 2004 5:40 pm
Your page generation times are great for php-nuke.
I actually wasnt having a browsing problem so I would say its your ISP. What are your running on? Cable, DSL, Dial-up, Other?
Change one more thing in your mainfile.php
Find:
Code:
$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
}
And Replace with:
Code:
/*ENABLE GZIP COMPRESSION*/
$phpver = phpversion();
if ($phpver >= '4.0.4pl1') {
ob_start('ob_gzhandler');
}
else if ($phpver > '4.0'){
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')){
if (extension_loaded('zlib')){
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
}
}
}
/*END GZIP COMPRESSIONS*/
I was never able to get the site to actually compress but this will allow it to. It reduces bandwidth usage and should beable to send the data to your computer much quicker. You can get up to around 80% reduction in file size when sending.
_________________ ....Check Out These Great Sites....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum