On Wed, 24 Apr 2002, Maxim Maletsky (PHPBeginner.com) wrote:
> You can use PHP-GTK in the background. Just call it with cron.
> Alternatively, you can set PHP to keep executing on the user exit. What
> was that function called? on_*_shutdown()?
>
> Could be dangerous though, what if it goes to lo
You can use PHP-GTK in the background. Just call it with cron.
Alternatively, you can set PHP to keep executing on the user exit. What
was that function called? on_*_shutdown()?
Could be dangerous though, what if it goes to loop-in your server? 30
mins is quite a few for a script to run. So, che
- Original Message -
From: "Richard Perez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 4:32 PM
Subject: [PHP] Background Processing
> Hi people!!
>
> I'm trying to find a way to handle this but I don't come up with anything.
>
> I need to execute a query
Disclaimer:
The following post contains C code for *nix!
Viewer discretion recommended!
Hi,
I'm back, I couldn't resist you mentioning C, so as
you did, big fault, the code that follows is probably
much better than exec, as an stderr terminal will
still be attached, but anyway:
exec("your
> Now the problem is that the C program will be running
> for longs periods like maybe half or even an hour. So
> i would basically want to just execute the program and
> return control to the script immediately so that the c
> program continues it's work.
>
> it's easy with forking. but i dont se
Hi Natasha,
Well the probably easiest shitty way to do it is:
exec("theprogram 1> /some/file 2>&1 &");
would exec()ute theprogram and will put it's output in
/some/file and stderr's output also in the /some/file,
and & at last signifies the backgroundness of the
program.
however as you mention
6 matches
Mail list logo