[PHP] Re: Using system

2003-09-18 Thread Daniel Souza
open with proc_open() and reads STDOUT "Uros" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hello! > > I'm pulling my hair. What is the right syntax to set output of some system > call to variable. > > I tried everything (system, shell_exec,exec) and always get output to > sc

[PHP] Re: Using system

2003-09-17 Thread Gal
try this: &1'); echo "\n".$sMyHostname."\n"; ?> Uros wrote: Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen. Please help. PHP version 4.3.3 CLI -- PHP General Mailing

[PHP] Re: using system() as a different user

2001-09-21 Thread Richard Lynch
You either need to use that sudo or suid thingie, or set up a PHP "CGI" (using a different extension and mime-type) wrapped in suExec (http://apache.org) I don't know anything more than that -- Just providing the road-signs to the right paths. -- WARNING [EMAIL PROTECTED] address is an endangere