Page 1 of 1

Slow loading page...PHP page pulling data out of SMF Forum

Posted: Fri Aug 12, 2005 1:59 pm
by cruisinflatout
The page can be found at http://www.saskstreetbike.com
I attached the code...sorry for the length. It's basically an html page with php bits and pieces here and there called index.php.

If you followed the link, you'll notice that it's quite slow to load. The forum itself is fast, but this page in particular loads really slow.

Hoping that some of you PHP guys can look at the code and see if anything stands out to you. Even if I take all the SSI out (that pulls info from the forum), it still loads slow. If I take out the SSI and remove all <?php code, it loads slow....

But if leave the php code in and rename the page to index.htm it's lightening fast [wtf]? (Obviously the php code does nothing in this case) You can see that here: http://www.saskstreetbike.com/indexphp.htm

This is on a personal server and maybe my server's not configured properly? I have other php pages, including the forum that have a very small latency...

Any thoughts would be greatly appreciated...

Regards,

Kevin

Code: Select all

<?php require("D:/inetpub/SSB/forum/SSI.php"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta name="keywords" content="streetbike, cruiser, touring, harley, saskatchewan, sask, SSB, motorcycle, Regina, Saskatoon, sport, bike, pictures, forum, links, tech, PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum">
<meta name="description" content="Saskatchewan\'s ONE and ONLY website dedicated to street bikes and their riders! Sask Sport Bike offers a forum, photos, links, videos, chat, tech talk, and whole lot more!">
        <script language="JavaScript" type="text/javascript" src="http://www.saskstreetbike.com/forum/Themes/default/script.js"></script>
        <script language="JavaScript" type="text/javascript"><!--
                var smf_theme_url = "http://www.saskstreetbike.com/forum/Themes/helios_multi";
                var smf_images_url = "http://www.saskstreetbike.com/forum/Themes/helios_multi/images";
        // --></script>
        <title>Saskatchewan Street Bike : : Cruise Flat Out!</title>
        <link rel="stylesheet" type="text/css" href="http://www.saskstreetbike.com/forum/Themes/helios_multi/style.css?rc1" />
        <link rel="help" href="http://www.saskstreetbike.com/forum/index.php?action=help" target="_blank" />
        <link rel="search" href="http://www.saskstreetbike.com/forum/index.php?action=search" />
        <link rel="contents" href="http://www.saskstreetbike.com/forum/index.php" />

        <script language="JavaScript" type="text/javascript"><!--
                var current_header = false;

                function shrinkHeader(mode)
                {
                        document.cookie = "upshrink=" + (mode ? 1 : 0);
                        document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

                        current_header = mode;
                }
        // --></script>
</head>
<body><div><table cellpadding="0" align="center" cellspacing="0" style="width: 100%;"><tr><td><div style="text-align: center; width: 99%"><img src="/ssbheader.gif"></div><div id="upshrinkHeader"><div style="padding-right: 10px;"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url(http://www.saskstreetbike.com/forum/The ... topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url(http://www.saskstreetbike.com/forum/The ... idleft.gif); ">&nbsp;</td><td valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="60%" valign="bottom" style="padding-right: 10px;"><div style="padding-right: 0px;"><table width="99%" cellpadding="4" cellspacing="5" border="0" style="margin-left: 2px;"><tr>
  <td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">
        
                                                        Welcome, Please <a href="http://www.saskstreetbike.com/forum/index.php?action=login">login</a> or <a href="http://www.saskstreetbike.com/forum/index.php?action=register">register</a> to be taken to the forum.<br />
                                                        Did you miss your <a href="http://www.saskstreetbike.com/forum/index.php?action=activate">activation email?</a><br />


                                                        <form action="http://www.saskstreetbike.com/forum/index.php?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:left;">
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">1 Hour</option>
                                                                        <option value="1440">1 Day</option>
                                                                        <option value="10080">1 Week</option>
                                                                        <option value="302400">1 Month</option>
                                                                        <option value="-1" selected="selected">Forever</option>
                                                                </select>
                                                                <input type="submit" value="Login" /><br />
                                                                Login with username, password and session length
                              </form>                              </td></tr></table></div></td><td style="padding-right: 10px;" width="50%" ALIGN=RIGHT VALIGN=BOTTOM><?php ssi_quickSearch(); ?></td>
</tr></table></td><td style="width: 27px; background-image: url(http://www.saskstreetbike.com/forum/The ... dright.gif); ">&nbsp;</td></tr><tr><td valign="top" style="height: 14px; width: 22px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url(http://www.saskstreetbike.com/forum/The ... botmid.gif); ">&nbsp;</td><td valign="top" style="height: 14px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table></div>
          <div style="padding-right: 10px;"></div>
</div><div style="padding-left: 0px;"><table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td valign="top" style="height: 44px; width: 124px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-stat-left.gif" style="height: 44px; width: 124px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 44px; background-image: url(http://www.saskstreetbike.com/forum/The ... at-mid.gif); "><table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" style="color: #88908a; font-size: 8pt; font-family: tahoma, helvetica, serif;">&nbsp;<!--<b>795</b> Posts in <b>
                      174</b> Topics by <b>52</b>
                      Members
                      - Latest Member: <b> <a style="color: #b0b0b0" href="http://www.saskstreetbike.com/forum/index.php?action=profile;u=52">MattMichaud</a></b>
                      --></td>
<td align="right" style="color: #b0b0b0; font-size: 8pt; font-family: tahoma, helvetica, serif;">&nbsp;<!--Current Date and Time--></td>
</tr></table></td><td valign="top" style="height: 44px; width: 135px;"><img alt="*" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-stat-right.gif" style="height: 44px; width: 135px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table></div><table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(http://www.saskstreetbike.com/forum/The ... midbar.gif);" ><tr><td style="width: 39%; background-color: black;"> </td><td><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td><td><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/upshrink.gif" alt="*" title="Shrink or expand the header." style="margin: 0px 0;" border="0" /></a></td><td><img id="upshrinkTemp" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/blank.gif" alt="" style="width: 2px; height: 20px;margin: 0px 0;" /></td><td><a href="http://www.saskstreetbike.com"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/home.gif" alt="Site Home" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/forum.gif" alt="Forum Home" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php?action=help" target="_blank"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/help.gif" alt="Help" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php?action=search"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/search.gif" alt="Search" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php?action=calendar"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/calendar.gif" alt="Calendar" style="margin: 0px 0;" border="0" /></a></td><td><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=donate%40saskstreetbike%2ecom&item_name=www%2esaskstreetbike%2ecom&no_shipping=1&cn=Comments&tax=0&currency_code=CAD&lc=CA&charset=UTF%2d8&charset=UTF%2d8"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/donate.gif" alt="Support Sask Street Bike!!!" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php?action=login"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/login.gif" alt="Login" style="margin: 0px 0;" border="0" /></a></td><td><a href="http://www.saskstreetbike.com/forum/index.php?action=register"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/english/register.gif" alt="Register" style="margin: 0px 0;" border="0" /></a></td><td><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-rightbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td><td style="background-color: black;width: 59%;"> </td></tr></table>
        <table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" id="bodyarea" style="padding-left: 3px; padding-right: 8px; padding-top: 0px; padding-bottom: 10px;"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url(http://www.saskstreetbike.com/forum/The ... midtop.gif); ">
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
                <td style="text-align: left; padding-left: 0px;" valign="bottom"><span class="nav"><a href="http://www.saskstreetbike.com/forum/index.php" class="nav">Sask Street Bike Discussion Forum</a></span></td>
        </tr>
</table></td><td style="height: 54px; width: 79px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url(http://www.saskstreetbike.com/forum/The ... topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url(http://www.saskstreetbike.com/forum/The ... idleft.gif); "></td><td valign="top">
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
        <tr>
                <td><p align="center"><strong>Welcome to Sask Street Bike!</strong> <br />
                    <br />
                    Saskatchewan's ONE and ONLY website dedicated to cruisers, touring bikes and their riders!! </p>
                  <hr />                  <p>On July 1st, 2005, this site was officially launched. We already have a great group of members and it's already  becoming a great resource for riders such as yourself to connect with people who have similar interests. </p>
                  <p>It provides many great discussion areas including a technical board for users who find themselves scratching their head (as we all do from time to time) about what could be wrong with their bike or what needs to be done in order to do a certain modification. The classifieds section is also available for members to list their stuff for FREE! It's not just limited to bike related items either, pretty much anything can be listed. </p>
                  <p>If you have any questions, there is a FAQ board that you can check out within the forum. It will explain more about the site and how to get the most out of it. As always, you can contact an administrator with any questions as well. </p>
                  <p>To access our beloved forum, click on the "forum" link at the top of the page, or you can now access it directly via: <a href="http://www.saskstreetbike.com/forum">http://www.saskstreetbike.com/forum </a></p>
                  <p>Enjoy your stay!! We look forward to hearing from you in the near future..</p>
                  <hr />                  <p align="center"><strong>Recent Announcements </strong></p>                  <hr />                  
                  <?php ssi_boardNews(); ?>
                  </td>
        </tr>
		
</table>
</div>
</td>
<td style="width: 27px; background-image: url(http://www.saskstreetbike.com/forum/The ... dright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url(http://www.saskstreetbike.com/forum/The ... botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url(http://www.saskstreetbike.com/forum/The ... botmid.gif); "><div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td align="left" class="smalltext">

                </td>
                <td align="right" class="smalltext">
                </td>
        </tr>
</table></div></td><td style="height: 78px; width: 79px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url(http://www.saskstreetbike.com/forum/The ... mid-41.gif); "><div style="font-weight: bold; text-align: center;">Sask Street Bike Discussion Forum - Info Center</div></td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table><div style="padding-left: 0px; padding-right: 0px;"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url(http://www.saskstreetbike.com/forum/The ... topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url(http://www.saskstreetbike.com/forum/The ... idleft.gif); "></td><td valign="top">

<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> 
        <tr>
                <td class="catbg" colspan="2">Recent Posts</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="http://www.saskstreetbike.com/forum/index.php?action=recent">
                                <img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/post/xx.gif" alt="Recent Posts" border="0" /></a>
                </td>
                <td class="windowbg2"><?php ssi_recentPosts(); ?> </td>
        </tr>
        <tr>
                <td class="catbg" colspan="2">Forum Stats</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="http://www.saskstreetbike.com/forum/index.php?action=stats">
                                <img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/icons/info.gif" alt="Forum Stats" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%"><?php ssi_boardStats(); ?> </td>
        </tr>
	<tr>
                <td class="catbg" colspan="2">Users Online</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="http://www.saskstreetbike.com/forum/index.php?action=who">
                                <img src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/icons/online.gif" alt="Users Online" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
<?php ssi_whosOnline(); ?> <span class="smalltext">
                        </span>
                        <hr /><span class="smalltext">
                        </span>


                </td>
        </tr>
</table>
</div></td><td style="width: 27px; background-image: url(http://www.saskstreetbike.com/forum/The ... dright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url(http://www.saskstreetbike.com/forum/The ... botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table></div></td>
        </tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 8px; height: 58px; width: 72px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-maxbotleft.gif" style="height: 58px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 58px; background-repeat: repeat-x;background-image: url(http://www.saskstreetbike.com/forum/The ... botmid.gif); ">
<div style="padding-top: 15px;">
                <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
                        <tr>
                                <td valign="middle" align="center" style="white-space: nowrap;">
                                        
		<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">Sask Street Bike Discussion Forum | Powered by <a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">SMF 1.0.5</a>.<br />
&copy; 2001-2005, <a href="http://www.lewismedia.com/" target="_blank">Lewis Media</a>. All Rights Reserved.
		</span>
                                </td><td align="right"><span class="smalltext"><br /><b>Helios Multi</b> design by <a target="_blank" href="http://www.bloczone.net/smf">Bloc</a></span></td>
             </tr>
          </table></div></td><td valign="top" style="padding-right: 5px; height: 58px; width: 79px;"><img alt="gfx" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/pod/silver/pod-maxbotright.gif" style="height: 58px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table><table align=center><tr><td align=center><a href="http://www.sasksportbike.com" target = "_blank"><img src="/sister.jpg" border=0></a></td></tr></table><div style="text-align: center;">

                             <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/powered-mysql.gif" alt="Powered by MySQL" border="0"  /></a>
                             <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/powered-php.gif" alt="Powered by PHP" border="0"  /></a>
                                       <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/valid-xhtml10.gif" alt="Valid XHTML 1.0!" border="0" /></a>
                                        <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="http://www.saskstreetbike.com/forum/Themes/helios_multi/images/valid-css.gif" alt="Valid CSS!" border="0" /></a>

        </div>
                <script language="JavaScript" type="text/javascript"><!--
                        var window_oldOnload = window.onload;
                        window.onload = smf_codeFix;

                        function smf_codeFix()
                        {
                                var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

                                for (var i = 0; i < codeFix.length; i++)
                                {
                                        if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
                                                codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
                                }

                                if (window_oldOnload)
                                        window_oldOnload();
                        }
                // --></script></td></tr></table></div>
</body>
</html>


feyd | when posting php code, please use

Code: Select all

where appropriate.[/color]

Posted: Fri Aug 12, 2005 2:09 pm
by feyd
with so little actual php code inside that post, the problems have to be inside SSI.php.. either the script itself, or the functions called during that page.

Posted: Fri Aug 12, 2005 2:26 pm
by cruisinflatout
I thought of that except I take out the "require ....SSI.php" and all the SSI stuff, and it still loads slow...

SSI.php comes staright from SMF (not that I'm proposing they are perfect) and I know our sistersite http:///www.sasksportbike.com uses the same include file and has no latency problems [dunno]

And thanks for editing my post with

Code: Select all

tags...I will keep that in mind inthe future...

Posted: Fri Aug 12, 2005 2:35 pm
by cruisinflatout
Could it be that I should build the whole page using php??

(by echoing all the code?)

Posted: Fri Aug 12, 2005 2:53 pm
by cruisinflatout
http://www.saskstreetbike.com/index.php
http://www.saskstreetbike.com/indexphpechoed.php

Could be just me, but I notice a slight improvement by building the page with php?? (second link)

If so, does this make sense??

Posted: Fri Aug 12, 2005 2:54 pm
by feyd
oops.. I misread your post, I thought you said the page loaded quickly without the code.

Anyways, I had Firefox analyze both pages:
SaskStreetBike.com
SaskSportBike.com

quite a difference.

Posted: Fri Aug 12, 2005 3:13 pm
by cruisinflatout
Thanks for the links for the website optimization...

I'll run it against the old index page http://www.saskstreetbike.com/copy%20of%20index.php

It loaded slow too but more closely mimicks the current layout and design of our sister site. (We moved to a different look and haven't moved it over to sasksport yet)

Thanks....

Posted: Fri Aug 12, 2005 3:30 pm
by feyd
I would say both could get some improvement. The number of images for Street is a lot, but both pages are similar in weight. Optimizing down the graphics would be a good idea on both sites. Rebuilding the pages using divs and spans could help browser calculation time as well.

Posted: Fri Aug 12, 2005 4:03 pm
by cruisinflatout
feyd wrote:I would say both could get some improvement. The number of images for Street is a lot, but both pages are similar in weight. Optimizing down the graphics would be a good idea on both sites. Rebuilding the pages using divs and spans could help browser calculation time as well.
Yah....me and my partner are fairly fresh at web design. We're both programmers, and our education only lightly brushed on web design. So, any ideas/hints/resources anyone could suggest about optimizing a website would be greatly appreciated.

(And I wish I knew this forum was around when I configured my server for php...lol)

Thanks alot,

Kevin