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
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
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
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
@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-
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
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
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.
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
[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
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
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
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
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
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
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
[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
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
[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
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
[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
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
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:
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
> 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
25 matches
Mail list logo