I have the following which call the exec to run the script test.php in the background.
exec("/home/gooffers/test.php?one=one &");
Script test.php contains the following
$test = $_GET['one'];
echo $test;
However this is creating an infinite loop (infinite number of processes) which is crashing the server. Why is this happening.
exec()is being used in your code, to see if there's an infinite loop in your main code.