Did you know you could use PHP from command line? Than you can create shell scripts with it?
Well… You can!
The only thing to do is to write down your piece of code and run it with:
php -f your_script.php
You can also insert as the first line:
#!/usr/bin/php
And by giving execution permissions to your script, you can launch it directly as this:
./your_script.php
If you want more details about using PHP for shell scripting you can go here, or here, or here.









