note 120058 added to features.commandline.webserver
| From: | matthes at leuffen dot de | Date: | Tue, 18 Oct 2016 13:21:23 +0000 |
| Subject: | note 120058 added to features.commandline.webserver | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206915@lists.php.net to get a copy of this message | ||
To output debugging information on the command line you can write output to php://stdout:
<?php
$path = $_SERVER["SCRIPT_FILENAME"];
file_put_contents("php://stdout", "\nRequested: $path");
echo "<p>Hello World</p>";
?>
----
Server IP: 72.52.91.14
Probable Submitter: 46.183.102.242
----
Manual Page -- http://php.net/manual/en/features.commandline.webserver.php
Edit -- https://master.php.net/note/edit/120058
Del: integrated -- https://master.php.net/note/delete/120058/integrated
Del: useless -- https://master.php.net/note/delete/120058/useless
Del: bad code -- https://master.php.net/note/delete/120058/bad+code
Del: spam -- https://master.php.net/note/delete/120058/spam
Del: non-english -- https://master.php.net/note/delete/120058/non-english
Del: in docs -- https://master.php.net/note/delete/120058/in+docs
Del: other reasons-- https://master.php.net/note/delete/120058
Reject -- https://master.php.net/note/reject/120058
Search -- https://master.php.net/manage/user-notes.php