Page 1 of 2
Creating static pages
Posted: Thu Mar 03, 2005 2:11 pm
by jmueller0823
Our home page load time has been loading slower and slower as we
add more dynamic content (and MySQL db calls).
What we'd like to do is 'take a snapshot' of the home page every half hour or so (via cron) and present that static page to our viewers.
We're doing something similar with the Unix wget utility, but we may need
something more advanced.
There is one element on the home page that must remain dynamic. It's a user poll. So, I guess creation of the static page must be "selective" somehow.
I know there are "enterprise solutions" to accomplish this for $$$-- We need to do this el cheapo.
Our home page is php, running on Apache.
Make sense? Ideas? Thanks.
Jim
growthtrac . com
Posted: Thu Mar 03, 2005 2:16 pm
by John Cartwright
I seriously think your taking the wrong approach at this.
Should look at optimizing your db calls and php code...
Posted: Thu Mar 03, 2005 2:29 pm
by feyd
Moved to PHP - Code.

Posted: Thu Mar 03, 2005 2:33 pm
by jmueller0823
Do you mean optimize the php scripts?
Posted: Thu Mar 03, 2005 2:34 pm
by Chris Corbyn
Yup... db calls and php shouldn't slow it down much.
Look at this forum with it's heavy traffic... I don't know what the stats are for db calls per minute but it'll be damn high I can tell you and this site runs like a treat
Must be the code... it can be optimized.
On another note... is your website on your own server or a shared server?
Posted: Thu Mar 03, 2005 2:48 pm
by feyd
I think a posting of the page code is in order.

Posted: Thu Mar 03, 2005 3:12 pm
by jmueller0823
Shared server.
We had some extreme slow downs this morning, which was an exception.
Getting "MySQL too many connections open" errors.
My host tells me was due to unusual load. Came back on its own.
But he also said we had 25 "sleeping state events' which (he thought) might be an issue. Comments?
Again, the above was an unusual event, not related to the day-to-day performance I was talking about.
``````````````
I just performed a test.
Timed the dynamic home page against a static version.
The net difference was under one second.
Static = 2.88s
Dynamic= 3.017s
Obviously, those numbers do not warrant a change.
Believe me, most days the load time is much slower.
``````````````
We have a news feed on that page. When the feed host slows down, we're at their mercy and the entire page crawls. So, in this case, a static page would help.
`````````````
Posted: Thu Mar 03, 2005 3:16 pm
by feyd
most pages should never take longer than a second or maybe two.. unless you are doing some heavy calculation.. Please post the code, we may be able to help find points of time sinks or other operations.. sleep() or usleep() calls are rarely warranted on most pages.. so I'm interested to see why and what for all these things are happening..
Posted: Thu Mar 03, 2005 3:16 pm
by John Cartwright
If I were you, I would only grab the new news once per day or so and save it into your own database. That should speed it up a bit.
What are the specs on the server.. doesn't sound like you should be having too many problems with your code..
still awaiting some examples of major db calls..
Posted: Thu Mar 03, 2005 3:18 pm
by jmueller0823
Want me to post code from the entire page?
Posted: Thu Mar 03, 2005 3:20 pm
by feyd
sure.. why not?
Posted: Thu Mar 03, 2005 3:25 pm
by jmueller0823
Code: Select all
<html>
<head>
<title>Marriage-Growthtrac, Resources for Spiritual Growth and Building Strong Marriages</title>
<meta name="keywords" content="marriage,married,christian,growth,marriage problem advice,christian marriage problems,christian music,christian marriage seminars,articles,marriage intimacy problems">
<meta name="description" content="Growthtrac's mission is to engage and equip married couples, and those
preparing for marriage, with products, content and services revealing the transforming power of the
Gospel. Growthtrac provides practical tools including articles, interviews, an online store, events and community forums.">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="imagetoolbar" content="no">
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.growthtrac.com/rss/article.rss"/>
<LINK REL="SHORTCUT ICON" HREF="http://www.growthtrac.com/favicon.ico">
<metta http-equiv="Set-Cookie" CONTENT="cookie=set; path=/">
<metta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" l gen true for "http://www.growthtrac.com" r (SS~~000 6))'>
<meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.growthtrac.com" r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.growthtrac.com" r (n 0 s 0 v 0 l 0))'>
<script type="text/javascript"language="JavaScript1.2" src="http://www.growthtrac.com/main.js"></script>
<script type="text/javascript"language="JavaScript1.2" src="http://www.growthtrac.com/pops.js"></script>
<link rel="stylesheet" href="http://www.growthtrac.com/main.css" type="text/css">
</head>
<BODY bgcolor="#A7C297" text="#000000" leftmargin="3" topmargin="0" marginwidth="0" marginheight="0" link="#B35634">
<script language="Javascript">
<!-- // Begin Script Hiding
function DoLaunch(newpage) {
window.open (newpage,'name','scrollbars=no,status=no,resizable=no,width=450,height=200');
return false;
}
// End Script Hiding -->
</script>
<table width="768" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="100%">
<tr align="left" valign="top">
<td height="116">
<table width="762" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td height="18">
<table width='764' height='117' cellpadding='0' cellspacing='0' border='0' align='' bgcolor='' background='<? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=57" ; ?>'>
<tr>
<td height="103">
<table width="756" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" width="119" align="right" valign="bottom"><a href="http://www.growthtrac.com"><img src="http://www.growthtrac.com/images/gt_logo_banner.gif" width="119" height="110" border="0" alt="Growthtrac..."></a></td>
<td height="81" width="235"> </td>
<td height="81" width="203" valign="top"> </td>
<td height="81" width="246" valign="top" align="right">
<table width="281" border="0" cellspacing="0" cellpadding="0" height="76">
<tr>
<td height="23" width="165"> </td>
<td height="23" width="116"> </td>
</tr>
<tr>
<td valign="top" height="42" width="165">
<table border="0" cellpadding="0" cellspacing="0" width="161">
<form method="get" action="http://www.growthtrac.com/cgi-bin/search/search.pl">
<tr valign="middle">
<td align="left" width="75"> </td>
<td align="left" width="75">
<input name="Terms" id="fdse_TermsEx" size="13" class="inputtext" />
</td>
<td align="left" width="130" valign="top">
<table width="75" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4"><img src="http://www.growthtrac.com/images/clear.gif" width="10" height="5"></td>
</tr>
<tr>
<td height="23">
<input type="image" src="http://www.growthtrac.com/images/icon_find.gif" value="search" border=0 alt="Search" width="34" height="25" name="image">
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
<td valign="top" height="42" width="116">
<table width="109" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle" align="right">
<td width="109" height="13"><a href="http://www.growthtrac.com/subscribe"><img src="http://www.growthtrac.com/images/newssignup.gif" width="100" height="10" border="0" alt="Signup..."></a></td>
<td width="10" height="13"> </td>
</tr>
<tr>
<td width="109" align="right" valign="middle" height="4"><a href="http://www.growthtrac.com/about.php"><img src="http://www.growthtrac.com/images/aboutgt.gif" width="100" height="10" border="0" alt="About..."></a></td>
<td width="10" height="4"> </td>
</tr>
<tr>
<td width="109" valign="middle" align="right"><a href="javascript:emailFriend();" ><img src="http://www.growthtrac.com/images/tellafriend2.gif" width="100" height="10" border="0" alt="Tell a Friend..."></a></td>
<td width="10"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" height="29" valign="middle" align="center">
<table width="634" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="37" align="center" valign="middle" class="navtext" height="17"><a href="http://www.growthtrac.com" class="navtext">Home</a></td>
<td width="7" align="center" valign="middle" height="17"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td width="80" align="center" valign="middle" height="17">
<table width="80" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="bottom">
<td class="navtext"><a href="http://www.growthtrac.com/marriage" class="navtext">Marriage</a></td>
</tr>
<tr valign="top" align="left">
<td class="navtext"><a href="http://www.growthtrac.com/premarried" class="navtext">Pre-marriage</a></td>
</tr>
</table>
</td>
<td width="7" valign="middle" align="center" height="17"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td width="53" valign="middle" align="center" height="17" class="navtext"><a href="http://www.growthtrac.com/spiritual" class="navtext">Spiritual</a>
</td>
<td width="7" align="center" valign="middle" height="17"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td width="51" align="center" valign="middle" height="17">
<table width="33" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="bottom">
<td height="19" class="navtext"><a href="http://www.growthtrac.com/connect"class="navtext">Connect</a></td>
</tr>
<tr valign="top" align="left">
<td class="navtext"><a href="http://www.growthtrac.com/boards" class="navtext">Forums</a></td>
</tr>
</table>
</td>
<td width="7" align="center" valign="middle" height="17"class="navtext"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td width="50" align="center" valign="middle" height="17"class="navtext"><a href="http://www.growthtrac.com/artman/publish/" class="navtext">Articles</a>
</td>
<td width="7" align="center" valign="middle" height="17"class="navtext"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td width="40" align="center" valign="middle" height="17"class="navtext"><a href="http://www.growthtrac.com/events" class="navtext">Events</a></td>
<td valign="middle" align="center" width="11" height="17"class="navtext"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td valign="middle" align="center" width="57" height="17"class="navtext"><a href="http://www.growthtrac.com/store"class="navtext">Shopping</a></td>
<td valign="middle" align="center" width="9" height="17"class="navtext"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<td valign="middle" align="center" width="51" height="17"class="navtext"><a href="http://www.growthtrac.com/ecard" class="navtext">e-Cards</a></td>
<td valign="middle" align="center" width="10" height="17"class="navtext"><img src="http://www.growthtrac.com/images/navline.gif" width="7" height="30"></td>
<form>
<td valign="middle" align="center" width="150" height="17"class="inputtext2">
<select class="inputtext2" name="select3" size="1" onChange="if (this.optionsїselectedIndex].value != '0') location.href=this.optionsїselectedIndex].value" style="width: 143px;">
<option value="0" selected>Explore Growthtrac...</option>
<option value="0"> </option>
<option value="/">-Home Page</option>
<option value="/subscribe/">-Free! eNews and more!</option>
<option value="0"> </option>
<option value="http://inside.growthtrac.com">-Insidetrac Blog</option>
<option value="0"> </option>
<option value="/marriage/">MARRIAGE</option>
<option value="/artman/publish/cat_index_11.php">-Articles</option>
<option value="/marriage/romantic.php/">-Romance</option>
<option value="/events/">-Workshops & Events</option>
<option value="http://www.growthtrac.com/cgi-bin/db/db.cgi?db=store&uid=default&Category=Marriage&sb=8&so=ascend&view_records=View+Records">-Books</option>
<option value="http://www.growthtrac.com/links/Marriage/">-Links</option>
<option value="0"> </option>
<option value="/special/">MARRIAGE HELP</option>
<option value="/special/counseling/">-Counseling</option>
<option value="/special/divorce/">-Divorce</option>
<option value="/special/finances/">-Finances</option>
<option value="/special/pornography/">-Pornography</option>
<option value="/special/religion/">-Religion</option>
<option value="/special/grieve/">-Grieving</option>
<option value="0"> </option>
<option value="/premarried/">ENGAGED</option>
<option value="/artman/publish/cat_index_12.php">-Articles</option>
<option value="http://www.growthtrac.com/cgi-bin/db/db.cgi?db=store&uid=default&Category=Engaged&sb=8&so=ascend&view_records=View+Records">-Books</option>
<option value="http://www.growthtrac.com/links/Engaged/">-Links</option>
<option value="0"> </option>
<option value="/spiritual/">SPIRITUAL HELP</option>
<option value="/devotional/">-Free Devotions</option>
<option value="/spiritual/seekers.php">-Resources</option>
<option value="/spiritual/newchris.php">-New Christian</option>
<option value="http://www.growthtrac.com/nextsteps.php">-Next Steps</option>
<option value="/church/looking.php">-Church Locator</option>
<option value="/store/nlt/">-Bibles</option>
<option value="http://www.growthtrac.com/cgi-bin/db/db.cgi?db=store&uid=default&Category=Questions&sb=8&so=ascend&view_records=View+Records">-Books</option>
<option value="/links/Spiritual/">-Links</option>
<option value="0"> </option>
<option value="/connect/">CONNECT</option>
<option value="http://inside.growthtrac.com">-Insidetrac Blog</option>
<option value="/ecard/">-Free E-cards</option>
<option value="/devotional/">-Free Devotions</option>
<option value="/boards/">-Discussion Forums</option>
<option value="/connect/rss.php">-RSS Feeds</option>
<option value="/avantgo/">-Avantgo Remote</option>
<option value="/chat/">-Chat</option>
<option value="/church/looking.php">-Church Locator</option>
<option value="0"> </option>
<option value="/artman/publish/">ARTICLES</option>
<option value="http://www.growthtrac.com/popular.php">-Most Popular</option>
<option value="/artman/topics">-Topics</option>
<option value="http://www.growthtrac.com/cgi-bin/db/db.cgi?db=player&view=browse&uid=default&category=&ID=*&sb=2&so=ascend&view_records=View+Records">-Audio Clips</option>
<option value="/artman/publish/cat_index_11.php">-Marriage</option>
<option value="/artman/publish/cat_index_12.php">-Engaged</option>
<option value="/artman/publish/cat_index_10.php">-Growth</option>
<option value="/artman/publish/cat_index_14.php">-Interviews</option>
<option value="/artman/publish/cat_index_17.php">-Music</option>
<option value="/artman/publish/cat_index_13.php">-My Story</option>
<option value="0"> </option>
<option value="/music/">MUSIC</option>
<option value="/artman/publish/cat_index_17.php">-Articles</option>
<option value="/artman/publish/cat_index_16.php">-Interviews</option>
<option value="/artman/publish/cat_index_18.php">-Reviews</option>
<option value="http://www.musichristian.com/refer/growthtrac/index.html">-Store</option>
<option value="/music/artistlinks.php">-Artist Links</option>
<option value="0"> </option>
<option value="/store/">SHOPPING</option>
<option value="/store/">-Our Store</option>
<option value="http://www.bookschristian.com/refer/growthtrac/index.html">-Books</option>
<option value="http://www.musichristian.com/refer/growthtrac/index.html">-Music</option>
<option value="http://www.growthtrac.com/cgi-bin/db/db.cgi?db=store&uid=default&Category=Marriage&sb=8&so=ascend&view_records=View+Records">-Favorites</option>
<option value="/store/nlt/">-Bibles</option>
<option value="/store/gift/">-Gifts</option>
<option value="0"> </option>
<option value="/church/">MINISTRY</option>
<option value="/events/gtevents.php">-Events</option>
<option value="/church/consult.php">-Consulting</option>
<option value="/syndicate/">-Free Content</option>
<option value="/subscribe/church.php">-Ministry e-News</option>
<option value="/study">-Men's Studies</option>
<option value="0"> </option>
<option value="0">MAGAZINES</option>
<option value="http://www.growthtrac.com/phpads/adclick.php?bannerid=7">-Marriage Partnership</option>
<option value="http://www.growthtrac.com/phpads/adclick.php?bannerid=5">-Today's Christian Woman</option>
<option value="http://www.growthtrac.com/phpads/adclick.php?bannerid=6">-Men of Integrity</option>
<option value="http://www.growthtrac.com/phpads/adclick.php?bannerid=141&zoneid=36&source=&dest=http%3A%2F%2Fwww.hutchins.com%2FFShub.asp%3FBC%3DCM%26RI%3Dsub1%26FK%3Dgrowthtrac">-Christian Music Planet</option>
<option value="0"> </option>
</select>
</td>
</form>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td height="3"><img src="http://www.growthtrac.com/images/clear.gif" width="1" height="1"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
</tr>
</table>
</td>
</tr>
<tr align="left" valign="top">
<td height="523">
<table width="748" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width='156' valign='top' bgcolor="#FFFFFF" height="451">
<table width="142" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="28"><a href="http://www.growthtrac.com/support/"><img src="/images/bar_support.gif" width="156" height="29" alt="Support Growthtrac..." border="0"></a></td>
</tr>
<tr>
<td height="22"><a href="http://www.growthtrac.com/marriage_01.php"><img src="/images/bar_welcome.gif" width="156" height="22" border="0" alt="Welcome..."></a></td>
</tr>
<tr valign="top" bgcolor="#D7E3EB">
<td height="102">
<table width="147" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom" align="left">
<td colspan="2" height="61"><img src="http://www.growthtrac.com/images/nav_left2.gif" width="153" height="80" usemap="#Map2" border="0"><map name="Map2"><area shape="rect" coords="22,9,129,28" href="http://www.growthtrac.com/marriage_01.php" alt="Get to Know Us..." title="Get to Know Us..."><area shape="rect" coords="23,28,128,43" href="http://www.growthtrac.com/subscribe" alt="Free Newsletter..." title="Free Newsletter..."><area shape="rect" coords="36,43,128,59" href="http://www.growthtrac.com/events/upcoming.php" alt="Coming Soon..." title="Coming Soon..."><area shape="rect" coords="52,59,126,74" href="http://www.growthtrac.com/link.php" alt="Link to Us..." title="Link to Us..."></map></td>
</tr>
<tr>
<td width="145" background="http://www.growthtrac.com/images/bkd_nav_left3.gif" class="link2">
<div align="right">
<script language="JavaScript"><!--
<!-- hide
topUtilities2()
//-->
</script>
</div>
</td>
<td width="24"><img src="http://www.growthtrac.com/images/clear.gif" width="20" height="8"></td>
</tr>
</table>
</td>
</tr>
<tr valign="top" bgcolor="#D7E3EB" align="right">
<td height="2" class="pageutility"> </td>
</tr>
<tr valign="top">
<td height="17"><a href="http://www.growthtrac.com/devotional/"><img src="/images/bar_daily.gif" width="156" height="29" border="0" alt="Daily Growthtrac..."></a></td>
</tr>
<tr bgcolor="#B9CCDE" valign="top">
<td height="2">
<table width="154" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.growthtrac.com/devotional"><img src="http://www.growthtrac.com/images/head_home_dailydevo.gif" width="156" height="17" border="0" alt="Devotional..."></a></td>
</tr>
<tr>
<tr>
<td><a href="http://www.growthtrac.com/liststoliveby.php"><img src="http://www.growthtrac.com/images/head_home_listlive.gif" width="156" height="17" border="0" alt="List to Live By..."></a></td>
</tr>
<tr>
<td><a href="http://www.growthtrac.com/devotional"><img src="http://www.growthtrac.com/images/head_home_marriagemin.gif" width="156" height="17" border="0" alt="Marriage Minute ..."></a></td>
</tr>
<tr>
<td height="13">
<table width="152" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="http://www.growthtrac.com/images/clear.gif" width="10" height="8"><img src="http://www.growthtrac.com/images/clear.gif" width="8" height="8"></td>
<td width="142" class="small"><? include("http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=3"); ?></td>
</tr>
</table><br>
</td>
</tr>
<tr valign="top">
<td height="57">
<table width="152" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="http://www.growthtrac.com/images/head_home_top.gif" width="156" height="17" border="0"></td>
</tr>
<tr>
<td width="9" height="29"><img src="http://www.growthtrac.com/images/clear.gif" width="8" height="8"></td>
<td width="146" valign="top" height="29"><? include("http://www.growthtrac.com/popular2.php");?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"><br><a href="http://headlines.agapepress.org/users/growthtrac/growthtrac1.asp"><img src="http://www.growthtrac.com/images/head_home_headlines.gif" width="156" height="17" border="0" alt="Today's Headlines..."></a></td>
</tr>
<tr>
<td>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="http://www.growthtrac.com/images/clear.gif" width="8" height="8"></td>
<td width="140" class="xsmall">
<script src="http://headlines.agapepress.org/headlines/timedate1.js"></script>
<br>
<a href="http://headlines.agapepress.org/users/growthtrac/growthtrac1.asp">
<script src="http://headlines.agapepress.org/headlines/headline1.js"></script>
</a><br>
<br>
<a href="http://headlines.agapepress.org/users/growthtrac/growthtrac2.asp">
<script src="http://headlines.agapepress.org/headlines/headline2.js"></script>
</a><br>
<br>
<a href="http://headlines.agapepress.org/users/growthtrac/growthtrac3.asp">
<script src="http://headlines.agapepress.org/headlines/headline3.js"></script>
</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="17"><img src="http://www.growthtrac.com/images/bar_survey.gif" width="156" height="29"></td>
</tr>
<tr bgcolor="#89AED5" valign="top" align="left">
<td height="72" class="xsmall">
<table width="152" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="http://www.growthtrac.com/images/clear.gif" width="8" height="8"></td>
<td width="142" valign="top" align="left"><? include("gtpoll/poll.php");?>
</td>
</tr>
</table>
<table width="151" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="http://www.growthtrac.com/images/clear.gif" width="8" height="20"></td>
<td width="141" class="xsmall" valign="top"><a n title="Open Popup Window" href="" onClick="return DoLaunch('survey_pop.htm');" >about
our survey</a></td>
</tr>
</table>
</td>
</tr>
<tr> </tr>
</table>
</td>
<td width="10" bgcolor="#FFFFFF" align="center" valign="top" height="451"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
<td width='582' valign='top' bgcolor="#FFFFFF" height="451" align="top">
<table width="586" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="499" valign="top" height="452">
<table width="479" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td height="75">
<img src="http://www.growthtrac.com/images/clear.gif" width="5" height="2">
<table width="439" border="0" cellspacing="2" cellpadding="0">
<tr align="left" valign="top">
<td style="border: 1px solid #CDCDCD;" height="109">
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
<td width="173" valign="top" align="center">
<table width="170" border="0" cellspacing="3" cellpadding="0">
<tr>
<td>
<div align="center"><? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=50" ; ?></div>
</td>
</tr>
</table>
</td>
<td align="left" valign="top" width="3"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
<td align="left" valign="top" width="229">
<table width="202" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td><? include("published_featured.htm"); ?></td>
</tr>
<tr>
<td><img src="http://www.growthtrac.com/images/line_featured.gif" width="228" height="23"></td>
</tr>
<tr align="right">
<td>
<table width="208" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="177" align="right"><img src="http://www.growthtrac.com/images/head_editorspicks.gif" width="120" height="25"></td>
<td width="50"><img src="http://www.growthtrac.com/images/clear.gif" width="50" height="5"></td>
</tr>
<tr>
<td width="177" align="right" height="18" class="link2"><img src="http://www.growthtrac.com/images/clear.gif" width="190" height="1"><br>
<? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=24" ; ?></td>
<td width="50" height="18"> </td>
</tr>
<tr>
<td colspan="2" align="right" height="9" class="link2"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr align="left">
<td><img src="http://www.growthtrac.com/images/bar_featured.gif" width="473" height="29" border="0" usemap="#Map"><map name="Map"><area shape="rect" coords="4,3,177,27" href="http://www.growthtrac.com/artman/publish/" alt="Articles..." title="Articles..."></map></td>
</tr>
<tr bgcolor="#D7E3EB" valign="top" align="left">
<td height="10" class="link1">
<table width="473" border="0" cellspacing="5">
<tr align="left" valign="top">
<td><? include("published_featured_multi.htm"); ?></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#D7E3EB" valign="top" align="right">
<td height="20" class="link1">
<table width="427" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="link2" width="209" align="left"><font class="regular">•</font> <a href="http://www.growthtrac.com/artman/publish/">MORE
ARTICLES</a></td>
<td class="link2" width="218" align="right"><font class="regular">•</font> <a href="http://www.growthtrac.com/connect/rss.php">RSS</a>
| <a href="http://www.growthtrac.com/artman/topics/">ARTICLE
TOPICS</a> | <a href="http://www.growthtrac.com/popular.php">MOST
POPULAR</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="3"><img src="http://www.growthtrac.com/images/clear.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="#D7E3EB" valign="top">
<td class="link1" height="148">
<table width="475" border="0" cellspacing="0">
<tr>
<td colspan="2" height="2" align="left"><img src="http://www.growthtrac.com/images/clear.gif" width="2" height="2"></td>
<td rowspan="2" height="2" valign="middle" width="292" align="right">
<? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=33" ; ?></td>
</tr>
<tr>
<td width="3" height="213"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
<td width="174" height="213" valign="top">
<table width="169" border="0" cellspacing="0" cellpadding="0" bgcolor="#89AED5">
<tr>
<td height="17"><a href="connect/"><img src="http://www.growthtrac.com/images/bar_connect.gif" width="174" height="29" border="0" alt="Connect..."></a></td>
</tr>
<tr>
<td height="17"><a href="http://www.growthtrac.com/boards/"><img src="http://www.growthtrac.com/images/head_home_forums.gif" width="170" height="17" border="0" alt="Forums..."></a></td>
</tr>
<tr>
<td height="15">
<table width="169" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"> <img src="http://www.growthtrac.com/images/clear.gif" width="15" height="8"></td>
<td width="154" class="xsmall">
<script language="JavaScript" type="text/javascript" src="http://www.growthtrac.com/boards/topics_anywhere.php?mode=show&f=a&n=1&sfn=y&fnl=y&r=y&sr=y&l=y&b=non&lpb=0&lpd=4&lpi=y"></script>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7"><img src="http://www.growthtrac.com/images/clear.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="10"> <a href="http://inside.growthtrac.com/"><img src="http://www.growthtrac.com/images/head_home_blog.gif" width="170" height="17" border="0" alt="insidetrac Blog..."></a>
<table width="169" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"> <img src="http://www.growthtrac.com/images/clear.gif" width="15" height="8"></td>
<td width="154" class="xsmall" valign="top">
<? include "http://growthtrac.com/inc_insidetrac_xs.php" ; ?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="14"><a href="http://www.growthtrac.com/avantgo"><img src="http://www.growthtrac.com/images/head_home_remote.gif" width="170" height="17" border="0" alt="Growthtrac Remote..."></a></td>
</tr>
<tr>
<td height="17"><a href="http://www.growthtrac.com/study"><img src="http://www.growthtrac.com/images/head_home_ghbc.gif" width="170" height="33" border="0" alt="Growing Husband's..."></a></td>
</tr>
<tr>
<td height="2"><a href="javascript:emailFriend();" ><img src="http://www.growthtrac.com/images/head_home_tellafriend.gif" width="170" height="17" alt="Tell a Friend..." border="0"></a></td>
</tr>
<tr>
<td height="2"><a href="http://www.growthtrac.com/ecard"><img src="http://www.growthtrac.com/images/head_home_ecards.gif" width="170" height="17" border="0" alt="e-Cards..."></a></td>
</tr>
<tr>
<td height="2"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="5"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#D7E3EB" valign="top">
<td class="link1" height="5"><img src="http://www.growthtrac.com/images/clear.gif" width="5" height="5"></td>
</tr>
<tr bgcolor="#D7E3EB" valign="top">
<td class="link1" height="2"> <img src="http://www.growthtrac.com/images/clear.gif" width="2" height="2">
</td>
</tr>
</table>
</td>
<td width="83" valign="top" height="452">
<table width="111" border="0" cellspacing="0" cellpadding="0" height="300">
<tr>
<td width="3" bgcolor="#FFFFFF" valign="top" align="center" height="451"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="1"></td>
<td width='120' valign='top' align="center" height="451">
<table width="120" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td height="6"><img src="http://www.growthtrac.com/images/clear.gif" width="1" height="27">
<div id="Layer1" style="position:absolute; width:130px; height:29px; z-index:1; left: 622px; top: 119px"><a href="http://www.growthtrac.com/subscribe/"><img src="http://www.growthtrac.com/images/icon_newsletter_button2.gif" width="130" height="29" border="0" alt="Free Newsletter..."></a></div>
</td>
</tr>
<tr valign="top">
<td height="8">
<?php
if (@include('/usr/u/home/g/grow/public_html/phpads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:29', 0, '', '', '0', $phpAds_context);
echo $phpAds_rawї'html'];
}
?>
</td>
</tr>
<tr>
<td height="11"><img src="http://www.growthtrac.com/images/line_banner.gif" width="120" height="20"></td>
</tr>
<tr valign="top">
<td height="6"><? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=30" ; ?>
</td>
</tr>
<tr>
<td height="12"><img src="http://www.growthtrac.com/images/line_banner.gif" width="120" height="20"></td>
</tr>
<tr valign="top" align="left">
<td height="17"><?php
if (@include('/usr/u/home/g/grow/public_html/phpads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:28', 0, '', '', '0', $phpAds_context);
echo $phpAds_rawї'html'];
}
?>
</td>
</tr>
</table>
</td>
<td width="10" valign="top" bgcolor="#FFFFFF" align="center" height="451"><img src="http://www.growthtrac.com/images/clear.gif" width="1" height="1"></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td colspan="2" height="0"><table width="560" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td colspan="2" height="2"class="link2"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="8">
<? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=39" ; ?>
<font class="regular">•</font> <a href="http://www.growthtrac.com/store/">BOOKS</a>
| <a href="http://www.growthtrac.com/music/"> MUSIC</a>
| <a href="http://www.growthtrac.com/store/nlt/">BIBLES</a>
| <a href="http://www.growthtrac.com/store/gift/">GIFTS</a>
</td>
</tr>
<tr>
<td width="3" height="11"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3">
</td>
<td width="602" height="11">
<table width="602" cellspacing="0" cellpadding="8" border="0">
<tr valign="top" align="left">
<td style="border: 1px solid #CDCDCD;" height="24" class="small"><? include "http://www.growthtrac.com/php/psDynamic/psDynamic.php?command=view&cid=35" ; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="2"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3">
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>
<tr align="left" valign="top" bgcolor="#FFFFFF">
<td height="59">
<table width="768" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CCFFFF" align="center">
<td height="18" class="footertext" width="761" bgcolor="#4B5F7A"><img src="http://www.growthtrac.com/images/clear.gif" width="2" height="2"></td>
<td rowspan="2" class="footertext" bgcolor="#FFFFFF" width="3"><img src="http://www.growthtrac.com/images/clear.gif" width="3" height="3"></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td height="81" class="footertext" width="761" bgcolor="#4B5F7A"> <img src="http://www.growthtrac.com/images/footer_tag.gif" width="210" height="17"><br>
<br>
<a href="http://www.growthtrac.com" class="footertext">Home</a> |
<a href="http://www.growthtrac.com/contact.php" class="footertext">Contact
Us</a> | <a href="http://www.growthtrac.com/help/sitemap.php" class="footertext">Site
Map | </a> <a href="http://www.growthtrac.com/email_policy.php" class="footertext">Email
Policy</a> | <a href="http://www.growthtrac.com/help" class="footertext">Help</a>
Posted: Thu Mar 03, 2005 3:34 pm
by feyd
first thoughts.. shoot whoever wrote the page. If that is you, I'm apologize, but it has to be done. The amount of nesting of tables is crazy. ...and I don't see any php code bits in there really... is
http://www.growthtrac.com/php/ your site? Why include the pages via URL? that requires the server to make seperate queries for each page wait for a response and add the data..
The page code is obviously written for far older browsers as the code is HTML4 at best.. Why not use CSS and XHTML ?
Posted: Thu Mar 03, 2005 3:35 pm
by smpdawg
Have you looked at any of the PHP optimizers like PHP-Accelerator, etc? Do you have compression turned on for the output? These are mildly affective at reducing server load and bandwidth usage. Plus they are extremely easy to implement and free.
Posted: Thu Mar 03, 2005 3:37 pm
by John Cartwright
That code could be reduced by 75% I would guess. That could also add to the slow loading pages... your html is madness.