Skip to content

Instantly share code, notes, and snippets.

@PetrP
Created May 5, 2012 16:27
Show Gist options
  • Save PetrP/2603799 to your computer and use it in GitHub Desktop.
Save PetrP/2603799 to your computer and use it in GitHub Desktop.
PHP non-CGI "-s"
<?php
if (isset($_GET['-s']))
{
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment