<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 09 Jul 2008 07:18:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Richard Heyes' Blog: Reading a specific line in a file]]></title>
      <guid>http://www.phpdeveloper.org/news/9925</guid>
      <link>http://www.phpdeveloper.org/news/9925</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/article.php/266">thrown together</a> some code for a simple thing that he's seen developers request over and over again - moving to/reading from a specific line in a file.
</p>
<blockquote>
After reading something on the php-general list I decided that a) I'm bored, and b) I'll write something which handles it. So <a href="http://www.phpguru.org/downloads/LineReader/">here</a> it is.
</blockquote>
<p>
His code is simple - looping through the lines of the file until it locates your desired target (with some error checking along the way). Plus, if it's already fetched, it keeps it in a cached array for future retrieval.
</p>]]></description>
      <pubDate>Mon, 07 Apr 2008 12:56:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPit.net: PHP on the command line]]></title>
      <guid>http://www.phpdeveloper.org/news/4977</guid>
      <link>http://www.phpdeveloper.org/news/4977</link>
      <description><![CDATA[PHPit.net has posted another new tutorial, this time they <a href="http://www.phpit.net/article/php-on-command-line/">look at the command-line</a>, providing the basics to those that have only used PHP in the web-based world.
<p>
<quote>
<i>
PHP is traditionally only used on the internet to power our websites, but it's also capable of doing more. Since version 4.3 PHP ships with a special version which can be used to execute scripts on the command line, and do certain system tasks. If you're a Linux user, you probably know what the command line is, but if you're a Windows user you might not.
</i>
</quote>
<p>
They <a href="http://www.phpit.net/article/php-on-command-line/">show the code/commands</a> in the examples they give in the context of it running on a Windows machine, but it's not a far leap to work with it on a unix-based system as well. They start with the basics - how to get to it, how to use it - before moving on to other features, like taking in arguments. They wrap it up with a sample application, a calculator, that can do the four basic operations on the two numbers entered.]]></description>
      <pubDate>Mon, 13 Mar 2006 07:26:42 -0600</pubDate>
    </item>
  </channel>
</rss>
