Hi I have been asked to 'optimise ’ this file header below. My server keeps blocking all IP’s due to over use of this file. I have no idea why as this file is a part of many other files used in the ecommerce and all other files in the root directory have the same/similar headers. Why only this file?
Server tech said this
Your account “stixandstones.com.au” hosted on elessar.nocdirect.com is running various CPU intensive php scripts which are causing very high load on the server and due to which server is going under very high load.
Please have a look at the follow details about your php scripts running in parallel.
Top Process %CPU 15.0 /usr/bin/php /home/stixands/public_html/proddetail.php
Top Process %CPU 14.0 /usr/bin/php /home/stixands/public_html/proddetail.php
Top Process %CPU 13.0 /usr/bin/php /home/stixands/public_html/proddetail.php
stixands 605 0.0 0.1 44020 11716 ? S 15:38 0:00 /usr/bin/php /home/stixands/public_html/proddetail.php
stixands 2094 0.0 0.1 44020 11712 ? S 15:39 0:00 /usr/bin/php /home/stixands/public_html/proddetail.php
stixands 2685 0.0 0.1 47356 13900 ? S 15:40 0:00 /usr/bin/php /home/stixands/public_html/proddetail.php
etc etc etc
We had no choice but to block web access of your account to stabilize the server because server is currently under very high load.
Please involve a web developer to check and optimize the code to decrease the resource usage. You should optimize your scripts/queries a little further because we believe that there is always some room for improvement.
Can anyone suggest how to optimise this file?
======proddetail.ph===============================
//Author: Vince Reid, [email protected]
<?php
session_cache_limiter('none');
session_start(); ?>
<?php
include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/db_conn_open.php";
include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/includes.php";
include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/inc/languagefile.php";
include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/inc/incfunctions.php";
include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/inc/metainfo.php";
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; ?>
Stix and Stones Baby
<div id="slogan"><img src="images/fresh_and_funky.png" width="328" height="18" alt="fresh and funky keepsakes for mum and bub" /></div>
</div>
![]()
![]()
<div class="box1Pad">
<div id="navigation">
<a href="/index.php">home</a>
<img src="images/bullet.gif" width="7" height="6" alt="" />
<a href="/meettheteam/">meet the team</a>
<img src="images/bullet.gif" width="7" height="6" alt="" />
<a href="/babyography/">babyography®</a>
<img src="images/bullet.gif" width="7" height="6" alt="" />
<a href="/babynames/">names for baby</a>
<img src="images/bullet.gif" width="7" height="6" alt="" />
<a href="/contact/">contact us</a>
<img src="images/bullet.gif" width="7" height="6" alt="" />
<a href="/stockists/">stockists</a> </div>
<?php include("vsadmin/inc/incsidemenu.php") ?>
<?php include("vsadmin/inc/incminicart.php") ?>
<div id="babyNameDB" class="box2Top"><div class="box2Left"><div class="box2Right"><div class="box2Bot">
<div class="box2TopLeft"><div class="box2TopRight"><div class="box2BotLeft"><div class="box2BotRight">
<div class="pad4" >
<h1 class="pad8">BABY NAME</h1>
<h1 class="pink">database</h1>
<div class="go2"><a href="/babynames/babynames.php"><img src="images/go2.gif" width="20" height="20" alt="GO" /></a></div>
</div>
</div></div></div></div>
</div></div></div></div>
<div class="hr2"> </div>
<div id="subscribeBox" class="box2Top"><div class="box2Left"><div class="box2Right"><div class="box2Bot">
<div class="box2TopLeft"><div class="box2TopRight"><div class="box2BotLeft"><div class="box2BotRight">
<div class="pad9" >
<a class="subscribeGo" href="/newsletter/"><img src="images/go2.gif" width="20" height="20" alt="GO" /></a>
<h1>SUBSCRIBE!</h1>
to our quarterly newsletter
</div>
</div></div></div></div>
</div></div></div></div>
<?php include $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']."/vsadmin/inc/nav/incbc.php"; ?>
<!-- InstanceBeginEditable name="mainContent" --><?php include "vsadmin/inc/incproddetail.php" ?><!-- InstanceEndEditable -->
<div id="searchBox">
<p class="pad3">SEARCH THE SITE</p>
<a class="startShopping" href="categories.php"><img src="images/start_shopping.gif" width="140" height="28" alt="START SHOPPING" /></a>
<p class="copyright">
©2007 Stix and Stones Baby. All rights reserved.<br />
Babyography® is a registered trademark of Tracey Donaghey.
</p>
<div class="clear"> </div>
<div class="footerLinks">
Customer Care |
Ordering & Delivery |
Privacy & Security |
Copyright |
Terms & Conditions |
Faq’s |
Links
|