note 105134 added to features.commandline
| From: | colet at llsys dot com | Date: | Fri, 29 Jul 2011 14:34:08 +0000 |
| Subject: | note 105134 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181995@lists.php.net to get a copy of this message | ||
If checking defined('STDIN') is inconsistent, you could try:
<?php
empty($_SERVER['SHELL']) && die('shells only please');
?>
I haven't tested this on windows.
----
Server IP: 212.199.163.163
Probable Submitter: 63.131.125.85
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- https://master.php.net/note/edit/105134
Del: integrated -- https://master.php.net/note/delete/105134/integrated
Del: useless -- https://master.php.net/note/delete/105134/useless
Del: bad code -- https://master.php.net/note/delete/105134/bad+code
Del: spam -- https://master.php.net/note/delete/105134/spam
Del: non-english -- https://master.php.net/note/delete/105134/non-english
Del: in docs -- https://master.php.net/note/delete/105134/in+docs
Del: other reasons-- https://master.php.net/note/delete/105134
Reject -- https://master.php.net/note/reject/105134
Search -- https://master.php.net/manage/user-notes.php