note 95177 added to function.shell-exec
| From: | ash_bladerunner at yahoo dot com | Date: | Wed, 16 Dec 2009 22:23:02 +0000 |
| Subject: | note 95177 added to function.shell-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164058@lists.php.net to get a copy of this message | ||
i am trying to implement the route command from linux with php. i have busted my brains for some
days now, trying everything on the net (i will give some examples below) but still couldn't get
it to work.
$add = shell_exec("/sbin/route del 192.168.183.5");
echo
route del 192.168.183.4;
$defaultRoute = shell_exec("route add 192.168.183.8 gateway 192.168.183.2");
all these examples i have found on the web and tested but php still doesn't do anything. i can
run the route command and the see the IPs listed there but i cannot use del/add to modfy them. i am
using fedora 6. can anyone please help, i am a little desperate about this project?
----
Server IP: 59.162.86.123
Probable Submitter: 79.116.225.221
----
Manual Page -- http://www.php.net/manual/en/function.shell-exec.php
Edit -- https://master.php.net/note/edit/95177
Del: integrated -- https://master.php.net/note/delete/95177/integrated
Del: useless -- https://master.php.net/note/delete/95177/useless
Del: bad code -- https://master.php.net/note/delete/95177/bad+code
Del: spam -- https://master.php.net/note/delete/95177/spam
Del: non-english -- https://master.php.net/note/delete/95177/non-english
Del: in docs -- https://master.php.net/note/delete/95177/in+docs
Del: other reasons-- https://master.php.net/note/delete/95177
Reject -- https://master.php.net/note/reject/95177
Search -- https://master.php.net/manage/user-notes.php