I have 2 php scripts that start.php runs s_supervisor.php in background so that browser becomes free and not waiting for s_supervisor.php loops be done. It was working awsome in "windows 10 XAMPP" but after afew months I ran the same codes again but the start.php does not trigger (call or run) the s_supervisor.php despite I didn't even touh any character of codes! Whats the probable problem? the codes that I have are below.
<?php # start.php
if(isset($_POST['start_supervisor'])) {
$myfile = fopen("spvc.ini", "w");
fclose($myfile);
exec("php -f s_supervisor.php >/dev/null 2>&1 &");
}
?>
<?php # s_supervisor.php
while(file_exists("spvc.ini")) {
if (file_exists("/error.log")) {
array_map( 'unlink', array_filter((array) glob("output_dir/*") ) );
}
}
?>