16.3. Summary
In this chapter, you went beyond the web environment and learned how to use PHP for command-line shell scripting. Although Perl and shell scripts are the dominant players in this arena, writing PHP scripts allows you to re-use PHP and PEAR library code for offline maintenance tools. You have learned about
Parsing command-line options using PEAR Console_Getopt
Good shell script behavior
Dealing with standard input/output
Process control
Writing PHP servers
Hopefully, this is a powerful supplement to your PHP toolbox.
Get PHP 5 Power Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.