note 28417 added to function.shell-exec

From: Date: Sun, 12 Jan 2003 19:06:52 +0000
Subject: note 28417 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-42025@lists.php.net to get a copy of this message
Well, it took some time for me to realise how to pass my existing variables in php to the shell.. Here is the way: $ex="chown -R Unixuser ".$p.";chgrp -R Unixgroup ".$p." "; shell_exec($ex); //echo $ex; - for debug -- http://www.php.net/manual/en/function.shell-exec.php http://master.php.net/manage/user-notes.php?action=edit+28417 http://master.php.net/manage/user-notes.php?action=delete+28417 http://master.php.net/manage/user-notes.php?action=reject+28417

« previous php.notes (#42025) next »