At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction; "Use PHP? We're Not Building a Website, You Know!"; Further Reading; Are You New to PHP?; Further Reading; Reader Prerequisites; An Important Note About Operating Systems; About the Sample Code; External Resources; Further Reading; PHP 7; Chapter 2: An Overview of CLI Programming in PHP; Getting Away from the Web; PHP Without a Web Server; PHP Versions: What's Yours?; A Few Good Reasons Not to Do It in PHP; High-Performance Requirements
Text of Note
Compiling and Installing PHP The process for compiling and installing PHP itself varies depending on the operating system you are deploying to. The following sections deal with the main OSes that PHP is available on.Windows; OS X; Linux/Unix; Compiling and Installing (Extra) Core Extensions; Installing Multiple Versions of PHP; Further Reading; PEAR and PECL; Composer; Symfony2 Bundles; Appendix B: Sources of Help; The PHP Manual; Official Mailing Lists; Stack Overflow; Other Books; Newsgroups; PHP Subredit; PHP on GitHub; PHP News Sites; Index
Text of Note
Don't (Necessarily) Re-invent the WheelKeeping the Source Closed; Thinking About Security; Further Reading; CLI-Specific Code Frameworks; Further Reading; Chapter 3: Understanding and Using the CLI SAPI; What's Different About the CLI SAPI?; Further Reading; CLI SAPI Installation; PHP Command-Line Options; Further Reading; Command-Line Arguments for Your Script; The Many Ways to Call PHP Scripts; From a File; From a String; From STDIN; As a Self-executing Script: Unix/Linux; Further Reading; As a Self-executing Script: Windows; Windows php-win.exe; Quitting Your Script; Further Reading
Text of Note
PHP REPLsChapter 4: User-Facing Software; Command-Line Interface Basics; Advanced Command-Line Input; Further Reading; Using STDIN, STOUT, and STDERR; CLI Helper Libraries; Chapter 5: PHP CLI Scripts and Your System; Starting External Processes from PHP, or "Shelling Out"; Further Reading; Further Reading; File Status and Realpath Caches; APC and Other Code Caches; Chapter 6: Where to Now? (Or, Thanks and Feedback); Giving Feedback and Getting Help and Support; Appendix A: Compiling and Installing PHP, Extensions, and Libs