So I am trying to execute some script from my php code. That lives in page blah.php
<?php
// ....
// just basic web site that allows upload of file...
?>
Inside I use system call
if (system("blah.pl arg1") != 0)
{
print "error\n";
}
else
{
print "working on it..you will receive e-mail at completion\n";
}
Works great but it waits until it completes until it prints working on it. I am aware that I am calling perl script from php not a typo.
How can I just start program execution and let it complete in background. The blah.pl script handles e-mail notification.
Anyone?
Thanks I appreciate it