This post originated from an RSS feed registered with Web Buzz
by Christian Stocker.
Original Post: PHP 5 as commandline tool
Feed Title: Bitflux Blog
Feed URL: http://www.cincomsmalltalk.com/php/rss.xml
Feed Description: About PHP and its developement
I needed to get the sum of a lot of figures from STDIN (one number per line), didn't find a standard unix tool for doing that (if anyone knows one, let me know, I'm still interested). Therefore I used the new powerfull PHP 5 commandline options:
cat figures | php5 ...