Re: [PHP] Start/Stop Service from program php

2008-07-27 Thread Daniel Brown
On Sat, Jul 26, 2008 at 11:48 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Generally, apache runs as www-data. What was the output of the command? Actually, Apache generally runs (in order) as nobody, apache, httpd, or daemon. Some distros (such as Ubuntu) or control panel installations (s

Re: [PHP] Start/Stop Service from program php

2008-07-26 Thread Micah Gersten
Generally, apache runs as www-data. What was the output of the command? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com I need write a script execute some command, but try start or stop service like named, network this don't work I edit visudo and add the ne

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Per Jessen
David Sveningsson wrote: > Per Jessen skrev: >> So obviously something is catching the SIGQUIT before it gets to your >> daemon. You mention "a php site", so I take it you're running >> apache. >> In an apache process you then do an exec(something). I think apache >> is probably taking care of t

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
Per Jessen skrev: David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument "--daemon" which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and t

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
@4u skrev: Hi, You might consider D-BUS for your application and the D-BUS PHP binding which is available since some days too. This would allow you to start / stop your C application in a far more secure way than the suggested one. Please have a look at my original release annoucement at the D-

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread @4u
Hi, You might consider D-BUS for your application and the D-BUS PHP binding which is available since some days too. This would allow you to start / stop your C application in a far more secure way than the suggested one. Please have a look at my original release annoucement at the D-BUS mailing l

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 7:51 AM, David Sveningsson <[EMAIL PROTECTED]> wrote: > Hi, I've written an application in c which I would like to start/stop as > a daemon in gnu/linux. > > The application has the argument "--daemon" which forks the process and > exits the parent. Then it setups a SIGQU

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Per Jessen
David Sveningsson wrote: > Hi, I've written an application in c which I would like to start/stop > as a daemon in gnu/linux. > > The application has the argument "--daemon" which forks the process > and exits the parent. Then it setups a SIGQUIT signal handler to > properly cleanup and terminate.

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Jochem Maas
David Sveningsson schreef: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument "--daemon" which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It al

RE: [PHP] start/stop deamon

2004-04-08 Thread Jay Blanchard
[snip] can some body tell me how to start/stop a deamon ( eg: dhcpd ) from php ? and also can v apply that same method to start/stop a some script by php ? [/snip] http://www.php.net/exec

[PHP] RE : [PHP] Start php-script with exec()?

2003-09-23 Thread BENARD Jean-philippe
Maybe you'll need to add " >/dev/null &" at the end of your execution command. Adding this will put your script to background and php wouldn't wait for this script end before terminate http process (=> no browser timeout). For example : exec("/logiciel/php/bin/php /tmp/toto.php >/dev/null &"); Co

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 16.11 skrev Marek Kilimajer: Ask your hosting company. Are you sure they will allow you to execute commands? Check phpinfo - safe mode and disabled functions. Asked them and they told it was a mistake we had php on the server - according to them it was either ph

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
Ask your hosting company. Are you sure they will allow you to execute commands? Check phpinfo - safe mode and disabled functions. Victor Spång Arthursson wrote: Ok, it works fine on my development server with Mac OS X. But the hosting server seems to be WinNT, and on this it doesnt work. Anyon

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
Ok, it works fine on my development server with Mac OS X. But the hosting server seems to be WinNT, and on this it doesnt work. Anyone who can help me with some standard paths to php.exe? "c:\php\" Doesnt work ;) Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 15.04 skrev Jay Blanchard: use & (not tested, but runs other processes as background processes) exec("/usr/local/php/bin/php process1.php &"); Think that works as well; my solution was "> /dev/null &"… Now the big question is if I will get it to work on a wind

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Marek Kilimajer
exec("/usr/local/php/bin/php process1.php & "); process executes in the background Victor Spång Arthursson wrote: måndagen den 22 september 2003 kl 14.52 skrev Jay Blanchard: As usual for *nix type 'which php' which will return the path to the PHP executable. For portability you could then do s

RE: [PHP] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip] > As usual for *nix type 'which php' which will return the path to the > PHP executable. For portability you could then do something to the > effect of (not tested) which() doesn't resolve the path, but I found out it was /usr/local/php/bin/php. But how do I make the call

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 14.52 skrev Jay Blanchard: As usual for *nix type 'which php' which will return the path to the PHP executable. For portability you could then do something to the effect of (not tested) which() doesn't resolve the path, but I found out it was /usr/local/php/bin

RE: [PHP] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip] måndagen den 22 september 2003 kl 14.31 skrev Jay Blanchard: > exec("php script.php"); will run the script. How does this look on a OSX/UNIX system? Can the path to php be found in a system variable, for convinience and portability of the script? [/snip] As usual for *nix type 'which php

Re: [PHP] Start php-script with exec()?

2003-09-22 Thread Victor Spång Arthursson
måndagen den 22 september 2003 kl 14.31 skrev Jay Blanchard: exec("php script.php"); will run the script. How does this look on a OSX/UNIX system? Can the path to php be found in a system variable, for convinience and portability of the script? Sincerely Victor -- PHP General Mailing List (htt

RE: [PHP] Start php-script with exec()?

2003-09-22 Thread Jay Blanchard
[snip] Is it possible? I have a file that takes 5 minutes to run, and I would like to be able to start it when loading a page. But I can't include it because it forces the browser to timeout... exec("script.php") doesn't seem to work... [/snip] exec needs a little more information, and will th

RE: [PHP] Start / Stop

2002-06-24 Thread Bruce Karstedt
Timestamp it at the beginning and the end. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 6:57 PM To: PHP General List Subject: [PHP] Start / St

Re: [PHP] start

2002-01-26 Thread Duncan Hill
On Fri, 3 Jan 1997, El Ucalito wrote: > im introducing to php and i need to know (under windows98) if are free > /and where can i download it/ the software needed to program and test > php4 www.php.net will answer all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Start you php script over??

2001-03-05 Thread Chris Lee
header() http://$SERVER_NAME/$PHP_SELF"); exit(); } ?> i your using sessions without coookies. header("Location: http://$SERVER_NAME/$PHP_SELF?PHPSESSID=$PHPSESSID"); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.55

RE: [PHP] Start you php script over??

2001-03-05 Thread Boget, Chris
> Is there a way for me to tell my php script to start over? I > want to have an if then statement to check if something is > done. Then if it isn't I want the php script to start over. header( "location: $PHP_SELF" ); OR header( "location: $REQUEST_URI" ); if you are using a query string/G