Linked by Thom Holwerda on Tue 19th May 2009 21:03 UTC
General Development Learn how to better integrate scripts with command-line tools. Examine using shell_exec(), exec(), passthru(), and system(); safely passing information to the command line; and safely retrieving information from it. See how to integrate closely with underlying shell commands and folding any return values into your interfaces and processes.
Thread beginning with comment 364499
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Suggustions for improvement
by zegenie on Wed 20th May 2009 06:10 UTC in reply to "Suggustions for improvement"
zegenie
Member since:
2005-12-31

Although it is true that this is fairly basic stuff, PHP is still often overlooked when it comes to command line programming.

Creating awereness is good, even if it is just about the basics.

Reply Parent Score: 2

kajaman Member since:
2006-01-06

I would say it's overlooked not without a reason. I can't find any advantages other than developers being cheap and easy to find, to use PHP for command line scripting.

Well, the reason above might be good enough on the other hand ;)

Reply Parent Score: 1

HiMAcks Member since:
2009-04-20

I resent that....I am NOT easy to find.

Reply Parent Score: 2

slight Member since:
2006-09-10

Our CMS has a CLI based interface that authenticates users based on their unix account (the web app stores an optional unix account name in the user record) so you can execute commands with the same permissions you could via the web interface.

Comes in very handy, especially for cron integration.

Reply Parent Score: 2