note 40581 added to function.system
| From: | beetung at yahoo dot com | Date: | Mon, 08 Mar 2004 18:34:13 +0000 |
| Subject: | note 40581 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66452@lists.php.net to get a copy of this message | ||
Under Linux
exec() doesnt follow symbolic link when interpret by httpd...
I have my /home/www/cgi-bin --> soft linked to a samba mounted directory under
/mnt/Downloads/www.site.com/cgi-bin
exec("/home/www/cgi-bin/runProg $a $b");
works ok when I execute the script using > php myscript.php but fails to show the output when run
via the web browser.
When I give it the exact full path without the symbolic link
exec("/mnt/Downloads/www.site.com/cgi-bin/runProg $a $b");
everything works perfectly.
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40581
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40581&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40581&report=yes
Search -- http://master.php.net/manage/user-notes.php