note 40581 deleted from function.system by cmb

From: Date: Sun, 08 Dec 2019 11:48:29 +0000
Subject: note 40581 deleted from function.system by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213487@lists.php.net to get a copy of this message
Note Submitter: beetung at yahoo dot com ---- 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.

« previous php.notes (#213487) next »