RE: [PHP] Background Processing

2002-04-24 Thread Miguel Cruz
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

RE: [PHP] Background Processing

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
: Wednesday, April 24, 2002 5:33 PM To: [EMAIL PROTECTED] 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 to a DB using PHP. The thing is that the query takes 0.5 hours to execute a

Fw: [PHP] Background Processing

2002-04-24 Thread otto
:) Try this http://www.naken.cc/mikehup.php Otto > - Original Message - > From: "Richard Perez" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, April 24, 2002 4:32 PM > Subject: [PHP] Background Processing > > > >

Re: [PHP] Background Processing

2002-04-24 Thread otto
- 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 wit

[PHP] Background Processing

2002-04-24 Thread Richard Perez
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 to a DB using PHP. The thing is that the query takes 0.5 hours to execute and I can't wait that time with the browser opened in that page. What I want to do is to execute a PHP code

Re: [PHP] background processing / forking

2001-03-06 Thread Mukul Sabharwal
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

Re: [PHP] Background processing / forking

2001-03-06 Thread Anders Johannsen
> 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

Re: [PHP] Background processing / forking

2001-03-06 Thread Mukul Sabharwal
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

[PHP] Background processing / forking

2001-03-06 Thread Natasha
hey, i wanted to know if there's a fork function in php, cause i don't see it in the manual. I basically wanna call a C program from PHP. 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 progra