Skip to content

Instantly share code, notes, and snippets.

@polachok
Created September 29, 2016 14: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 polachok/a1f7fd3b3b998bdd516f451e5ee3aeda to your computer and use it in GitHub Desktop.
Save polachok/a1f7fd3b3b998bdd516f451e5ee3aeda to your computer and use it in GitHub Desktop.
[/tmp]% cat test.txt
0
[/tmp]% cat test.php
<?php>
$file = fopen("test.txt", "r");
$buf = '';
while ($buf = fread($file, 1)) {
echo("inside\n");
}
echo("outside\n");
[/tmp]% php test.php
outside
@stanleyepicster
Copy link

what is this??

@Parad1se-py
Copy link

Seems like a php file, ok. EWW PHP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment