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

[PHP] Start/Stop Service from program php

2008-07-26 Thread opc
Hi I try execute unsucesfull the next code from web page ?php $cmd1 = shell_exec (sudo /sbin/service named stop); echo $cmd1; ? 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 next lines User_Alias MYGROUP

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

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

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. It

[PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
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 also maintains a lockfile (with

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

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 SIGQUIT

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

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

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 the SIGQUIT.

[PHP] start/stop deamon

2004-04-08 Thread CurlyBraces Technologies \( Pvt \) Ltd
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 ? thanx in advance curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] start-condition stack underflow

2003-11-01 Thread Pieter W.D. Kroon
Fatal error: start-condition stack underflow Have not seen this error in 4 years of programming PHP. Came up in looping SMTP socket test. Anyone knows what this means? Thanks Buiten Westen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-09-23 Thread BENARD Jean-philippe
); Cordialement, Jean-Philippe BENARD Consultant STERIA Infogérance ([EMAIL PROTECTED]) -Message d'origine- De : Victor Spång Arthursson [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 septembre 2003 14:16 À : [EMAIL PROTECTED] Objet : [PHP] Start php-script with exec()? Is it possible? I have a file

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

2003-09-22 Thread Victor Spång Arthursson
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 Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To

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 the

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

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.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

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 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

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

2003-09-22 Thread Victor Spång Arthursson
mndagen 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

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

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.

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

[PHP] Start / Stop

2002-06-24 Thread Chris Kay
Anyone have some tips on the best way to make a Script started @ 5:45pm Script ended @ 5:50pm Script? --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED]

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

[PHP] start a session crash

2002-02-06 Thread Pablo Petek
Hello, when i start a session ?php session_start(); ? at the begining of the documente *.php i receive this: in a dialog box: PHP provocó un error de página no válida en el módulo PHP4TS.DLL de 0177:10054363. Registros: EAX=0028 CS=0177 EIP=10054363 EFLGS=00010206 EBX=00760050 SS=017f

[PHP] start

2002-01-26 Thread El Ucalito
Hello, 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 Thanks everybody, Pablo.

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:

[PHP] Start you php script over??

2001-03-05 Thread Brandon Orther
Hello, 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. Thank you, Brandon Orther WebIntellects Design/Development

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/GET

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

2001-03-05 Thread Chris Lee
header() ?php if ($done) ... else { header("Location: http://$SERVER_NAME/$PHP_SELF"); exit(); } ? i your using sessions without coookies. header("Location: http://$SERVER_NAME/$PHP_SELF?PHPSESSID=$PHPSESSID"); --