I would like to real-hand experienced answer on this.
Which one is faster? Writing a Shell Script or PHP script? This script be will setup in cron.
Here is the brief idea of what I am trying to accomplish.
We get a lot of PGP encrypted files from clients. We download them to our local server, decrypt them and move them to different location for further processing.
There could be around 20-25 files a day to do and the number goes up gradually.
We have written both PHP script and Shell script to do this, for testing purposes.
But we are not sure which is going to faster and advantageous.
Has anyone tried? Any inputs?
Thanks much!
Both use an interpreter to execute your tasks. Depending on which OS you are using, their engines could have been both written in C++.
I would use PHP. Because it has more modules you can addon.
Say do your PGP encryption then you want to update a mySQL DB, Send an email, post to facebook, send a tweet out that your task is complete.
Edit – PHP doesn’t require awebserv. I’m referring to the command line execution of php and shell script.
PHP Command line help – http://php.net/manual/en/features.commandline.php