note 58485 deleted from function.highlight-string by cmb
| From: | cmb@php.net | Date: | Mon, 11 May 2015 15:36:09 +0000 |
| Subject: | note 58485 deleted from function.highlight-string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202500@lists.php.net to get a copy of this message | ||
Note Submitter:
----
growling octopus's code didn't work under Windows, so I made this and it worked:
<?php
if (!empty($_GET['source'])) {
$f = file_get_contents($_SERVER['SCRIPT_FILENAME']);
highlight_string($f);
exit();
}
?>