fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
May 22, 2013, 03:44:44 AM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27457 Posts in 6063 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  Website is crashing filemaker 9 server
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Website is crashing filemaker 9 server  (Read 2639 times)
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« on: October 15, 2009, 04:58:00 PM »

Recently my website built through fm studio has started to crash the filemaker 9 server...everything works fine and the website is relative fast but sometimes it will freeze up on a random page or the server will randomly crash.
I am guessing it is something with the PHP code..I am working with a database of 22k items..but i really can't narrow it down to what it could be.. I have done almost everything ppl recommended to speed up the process like using small layouts with only the stuff I am calling to the website.

A recent change that I've made that I dont know if it couldve did something, I separated my header, left bar, and footer and made them their own php page...and used the php command include to put them in each page of my website..since every page of my website will require them...

header.php, and leftbar.php both have recordsets in them because my navigation is loaded dynamically...

any help will be DEEPLY appreciated.
Logged
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« Reply #1 on: October 15, 2009, 05:47:52 PM »

now its throwing up this error which might narrow it down..

PHP has encountered an Access Violation at 01C0311A thats on mozilla

on IE it is saying http 500 internal server error...

so it is definatly something wrong within the php code..could it be some bad code created by fm studio or probably me? Sad
Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2050
Kudos: 9743



WWW
Applications:
« Reply #2 on: October 15, 2009, 05:55:39 PM »

Is it a particular page that throws the error, or any page?

If one page, please post the raw code here inside code markers (the # symbol on the toolbar )
Logged

tim.webko_at_gmail.com
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« Reply #3 on: October 15, 2009, 06:54:51 PM »

I'm too sure its in a single page but most of the times it has happened in my index.php page


sorry my code is kinda messy but here goes nothing:

index.php:
Code:
<?php require_once('Connections/Rackspace.php'); ?>
<?php

$featured_find 
$Rackspace->newFindCommand('Home Page Layout');
$featured_findCriterions = array('FeaturedProduct'=>'=='.'Featured',);
foreach(
$featured_findCriterions as $key=>$value) {
    
$featured_find->AddFindCriterion($key,$value);
}

$new_find $Rackspace->newFindCommand('Home Page Layout');
$new_findCriterions = array('NewProduct'=>'=='.'New',);
foreach(
$new_findCriterions as $key=>$value) {
    
$new_find->AddFindCriterion($key,$value);
}

$old_find $Rackspace->newFindCommand('Home Page Layout');
$old_findCriterions = array('NewProduct'=>'=='.'Old',);
foreach(
$old_findCriterions as $key=>$value) {
    
$old_find->AddFindCriterion($key,$value);
}



fmsSetPage($old_find,'old',8); 

fmsSetPage($new_find,'new',8); 

fmsSetPage($featured_find,'featured',8); 



$featured_result $featured_find->execute(); 

$new_result $new_find->execute(); 

$old_result $old_find->execute(); 



if(
FileMaker::isError($old_result)) fmsTrapError($old_result,"error.php"); 

if(
FileMaker::isError($new_result)) fmsTrapError($new_result,"error.php"); 

if(
FileMaker::isError($featured_result)) fmsTrapError($featured_result,"error.php"); 










fmsSetLastPage($old_result,'old',8); 

fmsSetLastPage($new_result,'new',8); 

fmsSetLastPage($featured_result,'featured',8); 



$featured_row current($featured_result->getRecords());

 

$new_row current($new_result->getRecords());

 

$old_row current($old_result->getRecords());

 

// FMStudio v1.0 - do not remove comment, needed for DreamWeaver support ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Discount Truck Accessories - Ford, Chevrolet, Toyota and Nissan</title>
<meta NAME="description" CONTENT="Discount Truck Accessories Official Site offers great deals on nerf bars, tonneau covers, air filters, bed mats, hitches, and many other truck accessories.">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="verify-v1" content="+RiBToO8RS2vE5EyfrvG1bBzS0XDz4kS3dDVqri88XI=" />
<meta name="keywords" content="Truck Accessories, Truck Parts, Accessory, Tonneau Cover, Truck Covers, Floor Mats, Exhaust, Air Intake, Air Filters, Oil Filters, Seat Covers, Truck Bra, Dask Kit, After Market, Sport, Pickup, Custom, 4x4, Off  Road, Discount, Free Shipping, Chrome, Performance, Tuners, Chips, Lift Kits, Suspension, Mud Flaps, Toolboxes, Hitches, Truck Bed Covers" />
<link href="css/typical.css" rel="stylesheet" type="text/css">
<link href="css/box.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/fsmenu.js"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<link href="css/listmenu_fallback.css" rel="stylesheet" type="text/css" />
<link href="css/listmenu_h.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>


<link rel="stylesheet" type="text/css" href="css/contentslider.css" />

<script type="text/javascript" src="js/contentslider.js">

/***********************************************
* Featured Content Slider- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>
</head>
<body bgcolor="#FFFFFF">
<!-- Save for Web Slices (header.psd) -->
<div id="wrapper">
<div id="header">
<?php include("header.php"); ?>
</div>
<div id="maincontent">
<script type='text/javascript'>
        function start_search()
        {
            var obj=document.getElementById('VehicleCategory');
            if(obj.options[obj.selectedIndex].value != '')
            {
                obj=document.getElementById('SearchByVehicleForm');
                obj.submit();
            }
        }
        </script>
        <script type='text/javascript'>
        function start_manu()
        {
            var obj=document.getElementById('Manufacturer');
            if(obj.options[obj.selectedIndex].value != '')
            {
                obj=document.getElementById('SearchByManuForm');
                obj.submit();
            }
        }
        </script>


<div id="leftbar">
<?php include("leftbar.php"); ?>
  </div>
  <div id="middlebar">


  <div id="error"><h2>CURRENTLY UNDER CONSTRUCTION</h2><p>Discount Truck Accessories is currently under construction. Feel free to browse through our site but please note that <strong>prices on items are not valid</strong> and you WILL ecnounter many errors while browsing. Please contact us for any questions, or if you have any feedback on the website. Thanks!</p>
 
  <p>You can also visit our sister website <a href="http://www.pickupspecialties.com" target="_blank">PickUpSpecialties!</a></p>
  <br />
  </div>
  <br />
 <?php
if (isset($_GET['subscribed'])) 
    echo 
"<h6>Thank you for subscribing! Please continue shopping.</h6><br />";
else
  echo 
"";
?>


<div id="slider4" class="sliderwrapper">

<div class="contentdiv" style="background: transparent url(images/1.jpg) no-repeat scroll left center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; display: none; z-index: 32; opacity: 1.1; visibility: visible;">
</div>

<div class="contentdiv" style="background: transparent url(images/2.jpg) no-repeat scroll left center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; display: none; z-index: 37; opacity: 0.6; visibility: visible;">
</div>

<div class="contentdiv" style="background: transparent url(images/3.jpg) no-repeat scroll left center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; display: none; z-index: 38; opacity: 0.1; visibility: visible;">
</div>

<div class="contentdiv" style="background: transparent url(images/4.jpg) no-repeat scroll left center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; display: block; z-index: 39; opacity: 1.1; visibility: visible;">
</div>

</div>

<div id="paginate-slider4" style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<div class="dp"><a rel="1" href="#" class="toc">&nbsp;&nbsp;1&nbsp;&nbsp;</a></div><div class="dp"> <a rel="2" href="#" class="toc">&nbsp;2&nbsp;</a></div><div class="dp"> <a rel="3" href="#" class="toc">&nbsp;3&nbsp;</a></div><div class="dp"> <a rel="4" href="#" class="toc">&nbsp;4&nbsp;</a></div>

</div>

<script type="text/javascript">

featuredcontentslider.init({
id: "slider4",  //id of main slider DIV
contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["", "Next"],  //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "mouseover", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.1],  //[true/false, fadedegree]
autorotate: [true, 2000],  //[true/false, pausetime]
onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
})

</script>



  <div id="featured">
        <div class="fheader"><div class="subheader2">FEATURED PRODUCTS</div></div>
        <ul class="featuredProducts">
<?php foreach($featured_result->getRecords() as $featured_row){ ?>
  <li><a href="details.php?ProductID=<?php echo $featured_row->getField('ProductID'); ?>"><img src="http://72.32.124.231:8020/SuperContainer/RawData/Images/Inventory/<?php echo $featured_row->getField('ProductID'); ?>" alt="<?php echo $featured_row->getField('_kp_PartNumber'); ?> | <?php echo $featured_row->getField('DescriptionShort'); ?>" width="140" height="100" name="featured" border="1"></a><br /><div align="center" id="miniheader"><a href="details.php?ProductID=<?php echo $featured_row->getField('ProductID'); ?>"><img alt="truck accessory detail" src="images/buttond.png" width="116" height="30" id="button" style="border:none;"></a><div><?php echo $featured_row->getField('DescriptionShort'); ?></div><br /><span class="miniprice">$<?php echo $featured_row->getField('ProductPrice'); ?></span><br /></div></li>
  <?php ?>
        </ul>
      </div>
        <div id="new">
        <div class="fheader"><div class="subheader2">NEW PRODUCTS</div></div>
        <ul class="featuredProducts">
<?php foreach($new_result->getRecords() as $new_row){ ?>
  <li><a href="details.php?ProductID=<?php echo $new_row->getField('ProductID'); ?>"><img src="http://72.32.124.231:8020/SuperContainer/RawData/Images/Inventory/<?php echo $new_row->getField('ProductID'); ?>"  alt="<?php echo $new_row->getField('_kp_PartNumber'); ?> | <?php echo $new_row->getField('DescriptionShort'); ?>" width="140" height="100" name="new" border="1"></a><br /><div align="center" id="miniheader"><span class="emphasis">NEW!</span><br />
      <a href="details.php?ProductID=<?php echo $new_row->getField('ProductID'); ?>"><img alt="truck accessory detail" src="images/buttond.png" width="116" height="30" id="button2" style="border:none;"></a><div><?php echo $new_row->getField('DescriptionShort'); ?></div><span class="miniprice">$<?php echo $new_row->getField('ProductPrice'); ?></span><br /></div></li>
  <?php ?>
        </ul>
        </div>
        <div id="old">
        <div class="fheader"><div class="subheader2">OLD PRODUCTS <span class="part">(Prices Greatly Reduced!)</span></div> </div>
        <ul class="featuredProducts">
<?php foreach($old_result->getRecords() as $old_row){ ?>
  <li><a href="details.php?ProductID=<?php echo $old_row->getField('ProductID'); ?>"><img src="http://72.32.124.231:8020/SuperContainer/RawData/Images/Inventory/<?php echo $old_row->getField('ProductID'); ?>"  alt="<?php echo $old_row->getField('_kp_PartNumber'); ?> | <?php echo $old_row->getField('DescriptionShort'); ?>" width="140" height="100" name="new" border="1"></a><br /><div align="center" id="miniheader"><span class="manu">Price Reduced</span><br />
      <a href="details.php?ProductID=<?php echo $old_row->getField('ProductID'); ?>"><img alt="truck accessory detail" src="images/buttond.png" width="116" height="30" id="button3" style="border:none;"></a><div><?php echo $old_row->getField('DescriptionShort'); ?></div><span class="miniprice">$<?php echo $old_row->getField('ProductPrice'); ?></span><br />
        </div></li>
  <?php ?>
        </ul>
        </div>
  </div>
 
</div>
<div id="signup"><form method="post" action="signup.php">
  <input type="text" name="signup" class="signbar" value="Enter E-mail for Special Offers" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;">
  <input name="submit" type="submit" value="GO" id="submit" class="searchbutton3">
    </form>
    </div>
<div id="footer">
<?php include("footer.php"); ?>
</div>


</div>



<?php include("analytics.php"); ?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10068359-1");
pageTracker._trackPageview();
} catch(err) {}
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
</script>
</body>
</html>



the only code that really changes is the one in index.php..header and left bar are called to every page..

I really appreciate the help it is very frustrating that my website keeps crashing especially when i have almost all the  functionalities i need working....I've been dealing with this problem for the past 3 days...
Logged
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« Reply #4 on: October 15, 2009, 06:55:40 PM »

header.php:
Code:
<?php 

$categoryName_find 
$Rackspace->newFindCommand('Main Categories');
$categoryName_findCriterions = array('MainCategory'=>'*',);
foreach(
$categoryName_findCriterions as $key=>$value) {
    
$categoryName_find->AddFindCriterion($key,$value);
}
fmsSetPage($categoryName_find,'categoryName',7); 



fmsSetPage($categoryName_find,'categoryName',25); 


$categoryName_result $categoryName_find->execute(); 


if(
FileMaker::isError($categoryName_result)) fmsTrapError($categoryName_result,"error.php"); 



fmsSetLastPage($categoryName_result,'categoryName',7); 



$categoryName_row current($categoryName_result->getRecords());

 

// FMStudio v1.0 - do not remove comment, needed for DreamWeaver support ?>


<div id="banner">
        <div id="hlink"><img alt="Discount Truck Accessories" src="inc_img/images/banner2.png" width="291" height="130" usemap="#Map2" border="0">
              <map name="Map2" id="Map2">
                <area shape="rect" coords="11,11,281,127" href="index.php" alt="Discount Truck Accessories" />
              </map>
        </div>
            <div id="carsback">
              <div id="carscontainer">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="112" id="FlashID2" title="Cars">
                <param name="movie" value="images/cars.swf" />
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                <param name="expressinstall" value="scripts/expressInstall.swf" />
                <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="images/cars.swf" width="200" height="112">
                  <!--<![endif]-->
                  <param name="quality" value="high" />
                  <param name="wmode" value="opaque" />
                  <param name="swfversion" value="6.0.65.0" />
                  <param name="expressinstall" value="scripts/expressInstall.swf" />
                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                  <div>
                    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                    <p><a href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" width="112" height="33" /></a></p>
                  </div>
                  <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
              </object>
              </div>
            </div>
          <div id="cartmenu"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="250" height="56" id="FlashID" title="Call Us now">
          <param name="movie" value="images/numb.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="images/numb.swf" width="250" height="56">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
      </object><br /><script type="text/javascript" src="http://discounttruckaccessories.com/liveagent/chatserver/track.php"></script>
<div id="livehelp" align="center">
 <a onclick="cs_100.open(); return false" target="_blank">
  <img style="cursor:pointer;"class="cs_100" src="http://discounttruckaccessories.com/liveagent/chatserver/button.php" alt="LiveHelp Button"/>
 </a>
</div>
          <img alt="" src="inc_img/images/cartnav.png" width="260" height="47" usemap="#Map3" border="0">
          <map name="Map3" id="Map3"><area shape="rect" coords="212,8,254,63" href="help.php" alt="Help Link" />
            <area shape="rect" coords="3,1,64,65" href="cart/account.php" alt="My Account" />
            <area shape="rect" coords="87,11,124,63" href="cart/cart.php" alt="Cart" />
            <area shape="rect" coords="141,8,195,63" href="cart/view_order.php" alt="Tracking" />
          </map>
          </div>
        </div>
    <div id="mainmenu">   
       
            <div id="topmenu">
            <ul class="menulist" id="listMenuRoot">
              <?php foreach($categoryName_result->getRecords() as $categoryName_row){ ?>
                <li>
                <a href="list.php?MainCategory=<?php echo $categoryName_row->getField('MainCategory'); ?>"><?php echo $categoryName_row->getField('MainCategory'); ?></a>
                <ul class="submenu">
           <div id style="width:500px;">
                    <?php
$categoryName__SubCategory1_portal_rownum 
1;
foreach(
fmsRelatedSet($categoryName_row,'SubCategory1') as $categoryName__SubCategory1_portal_row=>$categoryName__SubCategory1_portal){ 
?>

                  <div style="float:left; height: 17px; overflow:hidden; font-size:12px; font-weight:100; width:200px;"><li><a href="slist.php?SubCategory1=<?php echo $categoryName__SubCategory1_portal->getField('SubCategory1::SubCategory1'); ?>"><?php echo $categoryName__SubCategory1_portal->getField('SubCategory1::SubCategory1'); ?></a></li></div>
                    <?php if($categoryName__SubCategory1_portal_rownum == 0) break; else $categoryName__SubCategory1_portal_rownum++;
}
//portal_end ?>

</div>
                  </ul>
                </li>
                <?php ?>
            </ul>
            </div>
           
    </div>
      <div id="searchtab"><form name="specificsearch" method="get" action="search.php">
            <input type="text" name="DescriptionShort" class="searchbarin2"  value="Item Name or Part #" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;">
          <input class="searchbutton2" type="submit" name="specificsearch_submit" value="GO">
                            </form></div>
  <?php $Manufacturer_find $Rackspace->newFindCommand('MANUFACTURERS');
$Manufacturer_findCriterions = array('Manufacturer'=>'*',);
foreach(
$Manufacturer_findCriterions as $key=>$value) {
    
$Manufacturer_find->AddFindCriterion($key,$value);
}



$VehicleName_find $Rackspace->newFindCommand('Vehicle_Name');
$VehicleName_findCriterions = array('VehicleName'=>'*',);
foreach(
$VehicleName_findCriterions as $key=>$value) {
    
$VehicleName_find->AddFindCriterion($key,$value);
}

fmsSetPage($VehicleName_find,'VehicleName',100); 



fmsSetPage($Manufacturer_find,'Manufacturer',133); 

$Manufacturer_result $Manufacturer_find->execute(); 

$VehicleName_result $VehicleName_find->execute(); 

if(
FileMaker::isError($VehicleName_result)) fmsTrapError($VehicleName_result,"error.php"); 

if(
FileMaker::isError($Manufacturer_result)) fmsTrapError($Manufacturer_result,"error.php"); 


fmsSetLastPage($VehicleName_result,'VehicleName',100); 

fmsSetLastPage($Manufacturer_result,'Manufacturer',133); 

$Manufacturer_row current($Manufacturer_result->getRecords());


$VehicleName_row current($VehicleName_result->getRecords());

 

 

 
// FMStudio v1.0 - do not remove comment, needed for DreamWeaver support ?>
                         

leftbar.php
Code:
<dl class="blue">
<dt>Search By Vehicle</dt>
  <dd><form action="vlist.php" method="get" id='SearchByVehicleForm' name='SearchByVehicleForm'>
<select name="VehicleCategory" onchange='start_search()' id='VehicleCategory'>
<?php
foreach(fmsValueListItems($Rackspace,'Vehicle_Name','VehicleCategory',"") as $list_item) {
  
if($list_item == $VehicleName_row->getField('VehicleName')) {
   
 echo "<option value=\"{$list_item}\" selected=\"selected\">{$list_item}</option>\n";
  
} else {
    
echo "<option value=\"{$list_item}\">{$list_item}</option>\n";
 
 }
}
?>


</select><br />


</form></dd>
 
  </dl>

<dl class="blue">
<dt>By Manufacturer</dt>
  <dd><form action="mlist.php" method="get" id='SearchByManuForm' name='SearchByManuForm'>
   
      <select name="Manufacturer" onchange='start_manu()' id='Manufacturer'>
             
        <?php
foreach(fmsValueListItems($Rackspace,'MANUFACTURERS','Manufacturer',"") as $list_item) {
  
if($list_item == $Manufacturer_row->getField('Manufacturer')) {
   
 echo "<option value=\"{$list_item}\" selected=\"selected\">{$list_item}</option>\n";
 
 } else {
    
echo "<option value=\"{$list_item}\">{$list_item}</option>\n";}}
?>

</select>
</form>
        </dd>
</dl>

 <div id="lefmenu">
 <dl class="blue">
 <dt>Categories</dt>
 
   <?php foreach($categoryName_result->getRecords() as $categoryName_row){ ?>
     <dd class="categories" style="border-bottom:1px dotted #999;"><a href="list.php?MainCategory=<?php echo $categoryName_row->getField('MainCategory'); ?>"><?php echo $categoryName_row->getField('MainCategory',0); ?></a></dd>
     <?php ?>
        <dd><a href="vlist.php?VehicleCategory=Ford">Ford<br /><img src="inc_img/images/ford.jpg" alt="Toyota" width="50" height="24"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Chevrolet">Chevrolet<br /><img src="inc_img/images/Chevrolet-logo.jpg" width="50" height="26" alt="Chevrolet"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Dodge">Dodge<br /><img src="inc_img/images/dodge-logo.jpg" width="50" height="41" alt="Dodge"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=GMC">GMC<br /><img src="inc_img/images/gmc_badge.jpg" width="50" height="15" alt="GMC"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Isuzu">Isuzu<br /><img src="inc_img/images/Isuzu_logo.jpg" width="50" height="22" alt="Isuzu"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Mazda">Mazda <br /><img src="inc_img/images/Mazda-logo.jpg" width="50" height="35" alt="Mazda"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Nissan">Nissan<br /><img src="inc_img/images/Nissan.JPG" width="50" height="43" alt="Nissan"></a></dd>
        <dd><a href="vlist.php?VehicleCategory=Toyota">Toyota<br /><img src="inc_img/images/20070514-toyota-logo.jpg" alt="Toyota" width="50" height="34"></a></dd>
        <dd><a href="productlist.php">Product List</a></dd>
        <dd><a href="links.php">Links</a></dd>
       
</dl>
  </div>
Logged
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« Reply #5 on: October 20, 2009, 08:55:52 AM »

So the i cleaned up my code a bit and the website is not crashing anymore (yet) but from time to time it will lag right after i get this error

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\inetpub\wwwroot\discounttruckaccessories\FileMaker.php:62) in C:\inetpub\wwwroot\discounttruckaccessories\FileMaker\FMStudio_Tools.php on line 8

anyone know what this error might mean?
Logged
stevenm187
Jr. Member
**
Offline Offline

Posts: 89
Kudos: 50


« Reply #6 on: October 20, 2009, 12:49:25 PM »

Apparently I got rid of the session error by doing some clean up inside the fmstudio code...

the website still lags though..Whats weird is that it won't lag consistently..It will happen randomly..

I checked my IIS event log and this is what it comes up with everytime my website gets stuck

"A process serving application pool 'DefaultAppPool' failed to respond to a ping. The process id was '2504'."

I'm pretty certain it is bad PHP code...

Something else that is bothering me is that when my one website starts lagging as i am browsing it ..all my other websites on the server will lag as well until the website with the main problem times out...

This is very frustrating...
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!