Phil Sturgeon

PHP Library for the Command Line

PHP Command Line Library demo screenshotUsing 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 Files\Apache Software Foundation\Apache2.2\htdocs" (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

There are no comments

Post a comment


twiDAQ

Join the awesome twiDAQ game and invest in people you think are interesting. Invest in me:

Otherwise you can try investing in Jimbo:

He probably rigged it for him to win anyway.