note 114494 added to features.commandline.webserver
| From: | shenzhuxi at gmail dot com | Date: | Thu, 27 Feb 2014 10:51:18 +0000 |
| Subject: | note 114494 added to features.commandline.webserver | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198738@lists.php.net to get a copy of this message | ||
How to avoid this error.
This page contains the following errors:
error on line XX at column X: Extra content at the end of the document
Below is a rendering of the page up to the first error.
<?php
$path = pathinfo($_SERVER["SCRIPT_FILENAME"]);
if ($path['extension']=='xhtml') {
header('Content-Type: application/xhtml+xml;charset=utf-8');
readfile($_SERVER["SCRIPT_FILENAME"]);
exit;//Without it, the file will be output twice.
}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/features.commandline.webserver.php
Edit -- https://master.php.net/note/edit/114494
Del: integrated -- https://master.php.net/note/delete/114494/integrated
Del: useless -- https://master.php.net/note/delete/114494/useless
Del: bad code -- https://master.php.net/note/delete/114494/bad+code
Del: spam -- https://master.php.net/note/delete/114494/spam
Del: non-english -- https://master.php.net/note/delete/114494/non-english
Del: in docs -- https://master.php.net/note/delete/114494/in+docs
Del: other reasons-- https://master.php.net/note/delete/114494
Reject -- https://master.php.net/note/reject/114494
Search -- https://master.php.net/manage/user-notes.php