PHP Library for the Command Line
Posted Command Line at Oct 07, 2008
Using my sexy new PHP CLI library you don't even to learn anything. It will be Ignited and posted properly when I get the chance, but for now take a look at the demo code and give it a try.
Pastebin: PHP Command Line Class
To get this working simply save the file in your web root and open up your command line tool of choice. In Windows that would be Run > cmd [Enter] and on Mac you hit CMD + Space > Terminal [Enter].
Type in:
php /path/to/file.php
The path to your file may well be something like:
- "C:Program FilesApache Software FoundationApache2.2htdocs" (Windows Apache 2.2)
- /home/username/public_html/cli.php (Linux Apache)
- /Users/username/Sites/cli.php (Mac Leopard Apache)
Let me know what you think in the comments... in a few days when they work. :p
Comments