If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > loop problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-09, 04:42
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
loop problem

I have 8 php files that some of them insert values at mysql and other export data from mysql to xml files.
All are running individually but when I make a loop running all of them some files do not running if another file run before that.
What is wrong, is a way to clean memory etc before one script will run?
Code:
//query files
while($row = mysql_fetch_array($result))
{

$file=$row['cron_file'];
    if (!is_null($row['get_param']) 
|| !empty($row['get_param']))
   $_REQUEST['file']=$row['get_param'];
   echo "include ".$row['cron_file'];
include($row['cron_file']);
}
I also use

Code:
if (ob_get_level() == 0) {
   ob_start();
}.....echo "something";
ob_flush();
    flush();...
 ob_end_flush();
at code of each page.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On