Re: Starting a long php script from a web page
- From: "Jeff" <bigjman_99@xxxxxxxxx>
- Date: Wed, 27 Jul 2005 14:20:14 GMT
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@xxxxxxxxx> wrote in message
news:8JsFe.45803$s54.13380@xxxxxxxxxxx
> 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
>
.
- References:
- Starting a long php script from a web page
- From: Jeff
- Starting a long php script from a web page
- Prev by Date: Problem with connecting to MySQL from PHP script
- Next by Date: Want to display type of platform visiting
- Previous by thread: Re: Starting a long php script from a web page
- Next by thread: Detection of missing links
- Index(es):
Relevant Pages
|