Submit your breaking news stories and original articles to us by contacting us
Although most people use PHP primarily as a Web development scripting system, it possesses all the characteristics of a proper general-purpose language that can be useful in a variety of other environments. In this article, I illustrate how it’s possible to use the command-line version of PHP to perform complex shell operations, such as manipulating data files, reading and parsing remote XML documents and scheduling important tasks through cron.
Articles like this seem to be cropping up a lot lately. Bodes well for the PHP fans out there. What I like about this one is the fact that he goes into making a lil program with PHP. Tired of reading just about the theory of making PHP greater than just a web-scripting language. Love to see it being done in practice.
PHP on the Command Line
Questions for a language designer
86,800 of the most used words in the English language
Web Services Choreography Description Language Version 1.0
2-in-1 Language Learning + MP3 Pen
Forever Geek is a resource for all things geek. You can stay tuned by having the latest FG news delivered to you for free via RSS.
Category: Uncategorized
Tags:

Netbooks and User Satisfaction: It’s All About Expectations
10 Cool Sony Walkman photos – celebrate Walkman’s 30th birthday
2 Responses for "PHP as a General-Purpose Language"
August 18th, 2004 at 3:00 pm
1well, obviously you can write everything in php, just as you can in asm or bash.
The point that the author misses is why should I want to do such a thing?
August 18th, 2004 at 4:14 pm
2We’ve begun writing command-line scripts in PHP that plug effortlessly into our existing application framework (all PHP/MySQL)…really, really makes performing a lot of our server tasks and maintenance easier.
And BTW–nice site, Scrivs! Glad to see you’ve been busy. :)
RSS feed for comments on this post
Leave a reply