Skip to content

Instantly share code, notes, and snippets.

@fijiwebdesign
Created August 23, 2014 13:49
Show Gist options
  • Save fijiwebdesign/eca12d11c624e28f1a3c to your computer and use it in GitHub Desktop.
Save fijiwebdesign/eca12d11c624e28f1a3c to your computer and use it in GitHub Desktop.
PHP shell interpreter. Just copy to a file and execute the file to drop into a PHP command line.
#!/usr/bin/env php
<?php while (1) { fputs(STDOUT, "\n\-PHP$ "); eval(trim(fgets(STDIN))); } ?>
@fijiwebdesign
Copy link
Author

remember to give the file execute permissions:

chmod +x shell.php 

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