Posted by Jeff on 10/10/14 11:22
Well, I figured it out. The secret is to redirect the output to a file and
use an ampersand to put it into the background.
$ php myphpscript.php > myfile.txt &
Thanks for the ideas though!
Jeff
"Jeff" <bigjman_99@yahoo.com> wrote in message
news:8JsFe.45803$s54.13380@pd7tw2no...
> Hi,
>
> I have php script that takes several hours to run and I'd like to start it
> from a web page. I've tried to use include and the system() function to
> call the script directly but it still waits for it to finish.
>
> Anyone know how to call a script and get on with it?
>
> Thanks!
> Jeff
>
Navigation:
[Reply to this message]
|