Hi,
I tried to do this from the linux command line of my web server:
root@server1 [/usr/local/bin]# !/usr/local/bin/php -q
/usr/local/bin/php -q -dmemory_limit=512M -dsafe_mode=Off -q
<?php
print "Hello World!";
?>
Here are my questions
-
how can save the above code to a file while still in the PHP CLI?
-
can I execute the above PHP code without saving it to a file, while still in the PHP CLI?
-
Do I need to use SheBang?
Your help is highly appreciated
Thanks