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.