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
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
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
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
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
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
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
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
@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
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
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.
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
[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
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
);
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
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
[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
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
[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.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
[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
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
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
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
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.
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
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]
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
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
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.
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:
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
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
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");
--
34 matches
Mail list logo