Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-19 Thread Rodolfo De Nadai
Hello James, in future we will implement the script with cron, i've already talk to the support server guys... and i think this would be the best pratice... But for now i was wondering if there's a workaround... because in the moment my boss tell me to not change anything that could delay the s

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-18 Thread James Ausmus
On 9/17/07, Rodolfo De Nadai <[EMAIL PROTECTED]> wrote: > Hi all... > > I'm facing a serious problem with my application. I have a script write > in PHP that starts in Internet Explorer, this script keep on running > until a varible value change on my MySQL database. > The problem is that when i re

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-18 Thread Rodolfo De Nadai
PROTECTED] Sent: Monday, September 17, 2007 1:00 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Try to find a solution, when restart Apache with PHP Script Hi Daevid, This app keep alive forever as well? When you restart apache what happend to your app?

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
JS / AJAX. > -Original Message- > From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] > Sent: Monday, September 17, 2007 1:00 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] Try to find a solution, when restart > Apache with PHP Script > > Hi Dae

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Hi Daevid, This app keep alive forever as well? When you restart apache what happend to your app? Daevid Vincent escreveu: -Original Message- From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 5:25 AM To: php-general@lists.php.net Subject: [PHP] Try

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
> -Original Message- > From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] > Sent: Monday, September 17, 2007 5:25 AM > To: php-general@lists.php.net > Subject: [PHP] Try to find a solution, when restart Apache > with PHP Script > > Hi all... > > I'm facing a serious problem with my app

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: Jim, i've already look for pcntl... but the support server guys, tell me that they can't install php modules that are not pre-compiled... so, pcntl is not an alternative... Bummer, get new support server guys... no, but really I think you are right... i have to

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Right on the moment this process is not a option... because the project should end in 4 weeks... perhaps after a while i could try use this ideia of yours... But right now i have to find a diferent solution... But thanks Jim... that open new horizons... Jim Lucas escreveu: Rodolfo De Nadai

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: No... it not should only run when i'm connected to it throught a web server... it means that when i go to specific IE page and press a button named 'Enable' the daemon should be called and start to run indefinitly, and i'm able to close IE session and the daemon keep wor

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
No... it not should only run when i'm connected to it throught a web server... it means that when i go to specific IE page and press a button named 'Enable' the daemon should be called and start to run indefinitly, and i'm able to close IE session and the daemon keep working as well... That's

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: Edward , my best guess is that not IE is holding the connection but the apache user... because the process is related to the apache user... and there's more i can close IE, bacause i use the directive 2> log.log & on the call of system. Example: system("php myscript.php

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Jim, i've already look for pcntl... but the support server guys, tell me that they can't install php modules that are not pre-compiled... so, pcntl is not an alternative... I think you are right... i have to make this script a daemon... but how can i do that with php??... the problem is that t

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Edward , my best guess is that not IE is holding the connection but the apache user... because the process is related to the apache user... and there's more i can close IE, bacause i use the directive 2> log.log & on the call of system. Example: system("php myscript.php 2> log.log &"); This why

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Edward Kay
> I'm facing a serious problem with my application. I have a script write > in PHP that starts in Internet Explorer, this script keep on running > until a varible value change on my MySQL database. > The problem is that when i restart Apache, the process child initalized > isn't kill... then the ap