I try to use the output buffering feature, but it fails sometimes and I dont know why...?
Any idea...?
ob_start();
passthru("php -q file.php"); //or using the system() function
$html = ob_get_contents();
ob_end_clean();
the $html will contain what I want when it works; however, it returns nothing sometimes.
How to solve the problem? Or what the problem is indeed..?
Thanks a lot!!!