note 119825 added to function.show-source
| From: | kapten dot mozac at gmail dot com | Date: | Thu, 01 Sep 2016 19:42:08 +0000 |
| Subject: | note 119825 added to function.show-source | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206456@lists.php.net to get a copy of this message | ||
if show_source() won't work on your hosting, you can use file_get_contents()
<?php
echo "<pre>";
echo htmlentities(file_get_contents(__FILE__));
echo "</pre>";
?>
or combine it with highlight_string()
<?php
echo "<pre>";
echo htmlentities(highlight_string(file_get_contents(__FILE__)));
echo "</pre>";
?>
----
Server IP: 72.52.91.14
Probable Submitter: 114.125.186.226
----
Manual Page -- http://php.net/manual/en/function.show-source.php
Edit -- https://master.php.net/note/edit/119825
Del: integrated -- https://master.php.net/note/delete/119825/integrated
Del: useless -- https://master.php.net/note/delete/119825/useless
Del: bad code -- https://master.php.net/note/delete/119825/bad+code
Del: spam -- https://master.php.net/note/delete/119825/spam
Del: non-english -- https://master.php.net/note/delete/119825/non-english
Del: in docs -- https://master.php.net/note/delete/119825/in+docs
Del: other reasons-- https://master.php.net/note/delete/119825
Reject -- https://master.php.net/note/reject/119825
Search -- https://master.php.net/manage/user-notes.php