note 129029 added to function.shell-exec
| From: | shellmaster at main dot php dot net | Date: | Fri, 10 Nov 2023 11:27:51 +0000 |
| Subject: | note 129029 added to function.shell-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220985@lists.php.net to get a copy of this message | ||
You can use a one liner to print the output of a shell script like so:
<?= shell_exec("/proof.sh"); ?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 46.227.144.76)
----
Manual Page -- https://php.net/manual/en/function.shell-exec.php
Edit -- https://main.php.net/note/edit/129029
Del: integrated -- https://main.php.net/note/delete/129029/integrated
Del: useless -- https://main.php.net/note/delete/129029/useless
Del: bad code -- https://main.php.net/note/delete/129029/bad+code
Del: spam -- https://main.php.net/note/delete/129029/spam
Del: non-english -- https://main.php.net/note/delete/129029/non-english
Del: in docs -- https://main.php.net/note/delete/129029/in+docs
Del: other reasons-- https://main.php.net/note/delete/129029
Reject -- https://main.php.net/note/reject/129029
Search -- https://main.php.net/manage/user-notes.php