O'Reilly logo

PHP 5 Advanced: Visual QuickPro Guide by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11. PHP’s Command-Line Interface

PHP is known and loved as one of the best technologies for generating dynamic Web sites. Inevitably, developers started asking: If I can use PHP for Web pages, why can’t I use it for other things, too? Why not, indeed! The people behind PHP came around to this way of thinking circa PHP 4.2, and PHP CLI (Command Line Interface) was born. As of PHP 4.3, it’s part of the default configuration for all installations. Now you can do the equivalent of shell scripting (command-line programming) using your favorite language, PHP.

PHP CLI lets you run PHP scripts and even snippets of PHP code outside of a Web browser. On Windows, the action takes place within a DOS prompt (aka a console or command window). On Unix and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required