note 127915 added to language.operators.execution
| From: | paolo dot bertani at main dot php dot net | Date: | Thu, 10 Nov 2022 17:25:11 +0000 |
| Subject: | note 127915 added to language.operators.execution | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219870@lists.php.net to get a copy of this message | ||
If you want to avoid situations like the one described by @robert you may want to disable
shell_exec and -as a consequence- the backtick operator.
To do this just edit the php.ini file and add shell_exec to the
disable_functions setting:
; This directive allows you to disable certain functions.
; It receives a comma-delimited list of function names.
; https://php.net/disable-functions
disable_functions = "shell_exec"
Then you can still use exec() to run terminal commands.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.161 (proxied: 80.19.140.11)
----
Manual Page -- https://php.net/manual/en/language.operators.execution.php
Edit -- https://main.php.net/note/edit/127915
Del: integrated -- https://main.php.net/note/delete/127915/integrated
Del: useless -- https://main.php.net/note/delete/127915/useless
Del: bad code -- https://main.php.net/note/delete/127915/bad+code
Del: spam -- https://main.php.net/note/delete/127915/spam
Del: non-english -- https://main.php.net/note/delete/127915/non-english
Del: in docs -- https://main.php.net/note/delete/127915/in+docs
Del: other reasons-- https://main.php.net/note/delete/127915
Reject -- https://main.php.net/note/reject/127915
Search -- https://main.php.net/manage/user-notes.php