Show page source from get request


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. if (isset($_GET['source'])) highlight_file(basename($_SERVER['PHP_SELF'])) and exit;
  3. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.