Interactive PHP Shell (one line of PHP)

You need to save this under the web root, not in a web accessible folder. For example, on linux you could save it in your home directory. Say your user is "joe" then save it in /home/joe/ . Ify saved the file as interactive.php then you would invoke it via the command line with: ./interactive.php