note 127532 added to function.exec
| From: | php dot reg at kjpetrie dot co dot uk | Date: | Wed, 24 Aug 2022 23:00:04 +0000 |
| Subject: | note 127532 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219471@lists.php.net to get a copy of this message | ||
If you want to run the command in the background and also use escapeshellcmd() as recommended,
ensure you do the redirection outside the brackets! These are things you do want the shell to
interpret.
E.g. exec(escapeshellcmd('mycommand and arguments').' > /dev/null &');
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.175 (proxied: 81.174.152.183)
----
Manual Page -- https://php.net/manual/en/function.exec.php
Edit -- https://main.php.net/note/edit/127532
Del: integrated -- https://main.php.net/note/delete/127532/integrated
Del: useless -- https://main.php.net/note/delete/127532/useless
Del: bad code -- https://main.php.net/note/delete/127532/bad+code
Del: spam -- https://main.php.net/note/delete/127532/spam
Del: non-english -- https://main.php.net/note/delete/127532/non-english
Del: in docs -- https://main.php.net/note/delete/127532/in+docs
Del: other reasons-- https://main.php.net/note/delete/127532
Reject -- https://main.php.net/note/reject/127532
Search -- https://main.php.net/manage/user-notes.php