Hi Yahav,
this problem has already been discussed on the mailing list.
You can find the thread in the suPHP mailing-list archive of September
2008:
https://lists.marsching.com/pipermail/suphp/2008-September/thread.html#2042
The subject of the thread was "SuPHP recursive forking".
-Sebastian
Am 11.07.2010 11:54, schrieb Yahav Shasha:
hello,
i'm using Suphp and i have two files:
@FILE: 1.php
<?php
ob_end_clean();
exec("/usr/local/bin/php 2.php >/dev/null &");
die();
exit();
?>
@FILE: 2.php
<?php
$a = fopen("logfile.txt", "a+");
fwrite($a, date("r")."\n");
fclose($a);
exit ();
die();
?>
when i execute /usr/local/bin/php 2.php >/dev/null & thru SSH it all
works fine! but when i open 1.php in the browser it open the process,
never execute the 2.php file (the logfile never got written) and the
process start a loop and executing itself in a loop.
i'v tried the IRC channels of PHP and APACHE they both didnt knew what
the problem is,
until i figured its a SuPHP problem.
i cannot use a cronjobs for this, i need the process to start the moment
the user hit this page by the browser and i need it to process in the
background while the user can leave the page and continue to surf.
i tried also popen() and same thing happens.
well i really dont know what to do anymore with this situation, hope you
guys could help.
thanks,
Yahav.
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp