Skip to content

Instantly share code, notes, and snippets.

@cereal-s
Created November 28, 2016 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cereal-s/878b782f39b0f6374c8f7d1a98f480fd to your computer and use it in GitHub Desktop.
Save cereal-s/878b782f39b0f6374c8f7d1a98f480fd to your computer and use it in GitHub Desktop.
Read file
<?php
# @see http://php.net/manual/en/wrappers.php.php
#
# NOTA BENE
# __FILE__ does not work as expected when executed by eval()
$file = __FILE__;
# or by convert.quoted-printable-encode
print include "php://filter/convert.base64-encode/resource={$file}";
print PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment