note 109882 added to language.operators.execution
| From: | inform dot to dot kannan at gmail dot com | Date: | Thu, 30 Aug 2012 16:21:14 +0000 |
| Subject: | note 109882 added to language.operators.execution | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190277@lists.php.net to get a copy of this message | ||
You can use the backtick operator on windows to run windows command too and it is not restricted
only to execute the exe.
Example:
<?php
$output =
dir;
echo "<pre>$output</pre>";
?>
It lists all the files in the directory
----
Server IP: 182.18.132.21
Probable Submitter: 122.165.80.79
----
Manual Page -- http://www.php.net/manual/en/language.operators.execution.php
Edit -- https://master.php.net/note/edit/109882
Del: integrated -- https://master.php.net/note/delete/109882/integrated
Del: useless -- https://master.php.net/note/delete/109882/useless
Del: bad code -- https://master.php.net/note/delete/109882/bad+code
Del: spam -- https://master.php.net/note/delete/109882/spam
Del: non-english -- https://master.php.net/note/delete/109882/non-english
Del: in docs -- https://master.php.net/note/delete/109882/in+docs
Del: other reasons-- https://master.php.net/note/delete/109882
Reject -- https://master.php.net/note/reject/109882
Search -- https://master.php.net/manage/user-notes.php