<?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>Fri, 29 Aug 2008 01:35:39 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Port Scanning and Service Status Checking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10376</guid>
      <link>http://www.phpdeveloper.org/news/10376</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has <a href="http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page1.html">posted a new tutorial</a> covering how to scan ports and checking a remote service's status with PHP.
</p>
<blockquote>
Having access to the current status of public servers can empower your applications to make decisions and respond to problems automatically. Acknowledging a service is offline can also save endless support emails. In this tutorial, I'll show you how to keep track of your server status by scanning ports on your server with PHP.
</blockquote>
<p>
They show how to check a remote instance (a socket open with a timeout) and how to run through a list of ports, looping from one to one-thousand and running an fsockopen on each. They make a sample script to show these two combined - a simple page that loops through the common protocols (HTTP, FTP, SSH, etc) and checks to see if the remote machine is running something on that port.
</p>]]></description>
      <pubDate>Tue, 10 Jun 2008 08:46:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Netkachov's Blog: BAT file tips]]></title>
      <guid>http://www.phpdeveloper.org/news/10355</guid>
      <link>http://www.phpdeveloper.org/news/10355</link>
      <description><![CDATA[<p>
<i>Alex Netkachov</i> has updated <a href="http://www.alexatnet.com/node/22">a post he made</a> a while back (in 2006 in fact) about making Windows batch files (.BAT) that would do the same thing as some of the functions in PHP. He's added two more to it today - one for string replace and another for splitting a string.
</p>
<p>
The <a href="http://www.alexatnet.com/node/22#string_replace">replace</a> is as simple three line call, much the same as PHP's and the <a href="http://www.alexatnet.com/node/22#string_split">split call</a>, while a bit more complex, is still pretty straight forward (it just needs a few extra variables).
</p>
<p>
Other methods in <a href="http://www.alexatnet.com/node/22">the post</a> include a "switch" method, defining a procedure and updating variable by its name.
</p>]]></description>
      <pubDate>Fri, 06 Jun 2008 07:58:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Harry Roberts' Blog: Manipulating PHP arrays with SQL]]></title>
      <guid>http://www.phpdeveloper.org/news/10250</guid>
      <link>http://www.phpdeveloper.org/news/10250</link>
      <description><![CDATA[<p>
<i>Harry Roberts</i> has a <a href="http://codeb.us/manipulating-php-arrays-with-sql">quick post</a> to his blog today showing a method he's come up with to handle PHP arrays from inside of SQL statements (a port of the JsonSQL library to PHP).
</p>
<blockquote>
Trent Richardson created a very small and simple JsonSQL library for JavaScript which allows you to run an extremely limited subset of SQL against a Json array/object. I quickly ported it over to PHP 5 and it works like a charm, although the syntax for the WHERE clause isn't exactly the same but the rest ported across properly.
</blockquote>
<p>
He's included some sample source code of it in action - selecting information out of an array of user information, once changing their order and the other grabbing a username. Complete source for the library is included too.
</p>]]></description>
      <pubDate>Thu, 22 May 2008 14:39:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin van Zonneveld's Blog: Porting PHP to Javascript]]></title>
      <guid>http://www.phpdeveloper.org/news/9371</guid>
      <link>http://www.phpdeveloper.org/news/9371</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2913-Porting-PHP-to-JavaScript">pointed out</a> several code snippets from <a href="http://kevin.vanzonneveld.net/techblog/">Kevin van Zonneveld</a> that are ports of some favorites from the world of PHP over to Javascript.
</p>
<p>
They're broken up into a series of posts to <a href="http://kevin.vanzonneveld.net/techblog/">his blog</a> and include:
</p>
<ul>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_include/">include</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_ltrim/">ltrim</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_str_rot13/">str_rot13</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_strtoupper/">strtoupper</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_stripslashes/">stripslashes</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_nl2br/">nl2br</a>
<li><a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_str_pad/">str_pad</a>
</ul>
<p>
Each post includes a description, the parameters the function takes in, return values, credits for the code and the Javascript code to make it work. For a library with the complete list of ported functions, you can download <a href="http://kevin.vanzonneveld.net/code/php_equivalents/php.js">this .js file</a> (or the <a href="http://kevin.vanzonneveld.net/code/php_equivalents/php.min.js">compressed version</a>). 
</p>
<p>
You can check out the full list of ported functions in <a href="http://kevin.vanzonneveld.net/techblog/category/php2js/">this category</a> on his blog.
</p>]]></description>
      <pubDate>Tue, 08 Jan 2008 08:47:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Hamcrest]]></title>
      <guid>http://www.phpdeveloper.org/news/9337</guid>
      <link>http://www.phpdeveloper.org/news/9337</link>
      <description><![CDATA[<p>
In a <a href="http://sebastian-bergmann.de/archives/733-Hamcrest.html">new post</a> to his blog, <i>Sebastian Bergmann</i> mentions a new effort he's undertaken - the porting of the <a href="http://code.google.com/p/hamcrest/">Hamcrest</a> library of matcher objects to PHP.
</p>
<blockquote>
I have begun to port <a href="http://code.google.com/p/hamcrest/">Hamcrest</a>, which provides a library of matcher objects (also known as constraints or predicates) allowing "match" rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules, to PHP.
</blockquote>
<p>
The <a href="http://fisheye3.cenqua.com/browse/hamcrest/trunk/hamcrest-php">hamcrest-php project</a> compliments other current hamcrest-related projects and his ultimate goal is to make it available to the <a href="http://www.phpunit.de">PHPUnit</a> testing community (as well as with the <a href="http://code.google.com/p/phpmock/">PHPMock</a> effort).
</p>]]></description>
      <pubDate>Tue, 01 Jan 2008 14:16:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ben Vinegar's Blog: ActiveSupport for PHP - Ruby style]]></title>
      <guid>http://www.phpdeveloper.org/news/8451</guid>
      <link>http://www.phpdeveloper.org/news/8451</link>
      <description><![CDATA[<p>
<i>Ben Vinegar</i>, having come from Rails to PHP was missing something - the ActiveSupport functionality Rails had natively that PHP doesn't. So, he's <a href="http://benlog.org/2007/8/13/activesupport-for-php-ruby-style">written up his own support</a> for it and shares it in his latest blog post.
</p>
<blockquote>
One of the things I miss most from Rails is ActiveSupport, the module that modifies Ruby's core classes (numbers, strings, more) with handy utility methods. They tie so well into the language, most Rails developers don't realize they aren't core methods.
</blockquote>
<p>
He starts with a Ruby example, showing how they work to show things like camelized strings, times and evaluations. Since PHP doesn't support the same syntax, he had to work around it with some "PHP trickery" in PHP5 to handle it similarly. You can check out the results in the examples in his blog or by <a href="http://benlog.org/assets/2007/8/13/active_support_php-0.1.zip">downloading the library</a> and trying it out for yourself.
</p>]]></description>
      <pubDate>Tue, 14 Aug 2007 12:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ActsAsFlinn Blog:  PHP and ActiveRecord]]></title>
      <guid>http://www.phpdeveloper.org/news/8418</guid>
      <link>http://www.phpdeveloper.org/news/8418</link>
      <description><![CDATA[<p>
On the ActsAsFlinn blog, a new article's been posted <a href="http://www.actsasflinn.com/articles/2007/08/08/php-and-activerecord">talking about ActiveRecord</a> and some of the problems with implementing it in PHP.
</p>
<blockquote>
I'm starting a new job soon and I'll be working primarily with PHP. Since I've been a rubyist for the last 2 years I'm looking at PHP from a Rails development perspective. Before working exclusively with Ruby I hung onto to PHP (because of the project I was working on) by porting Rails bits to PHP. I eventually gave up on porting Rails to PHP after my project's funding was cut.
</blockquote>
<p>
<a href="http://www.actsasflinn.com/articles/2007/08/08/php-and-activerecord">His experience</a> found that there were a few things that caused the problem in the transition between Ruby and PHP like "in Ruby everything is an object" and some Reflection differences between the two languages. He has a little sample object he's created the code for, but it still doesn't work quite right.
</p>
<p>
In the end, he points out that the <a href="http://www.martinfowler.com/eaaCatalog/rowDataGateway.html">Row Data Gateway</a> is a much easier method to get working in PHP (complete with sample code).
</p>]]></description>
      <pubDate>Thu, 09 Aug 2007 10:12:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Roadsend.com: SiteManager Library Being Ported to PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/8335</guid>
      <link>http://www.phpdeveloper.org/news/8335</link>
      <description><![CDATA[<p>
As mentioned by <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,27366,nodeid,5.html">the International PHP Magazine</a> site and on <a href="http://code.roadsend.com/siteManager">this Trac page</a> for the Roadsend SiteManager software, they're working on porting it up to PHP5.
</p>
<blockquote>
The latest available version, Roadsend PHP SiteManager 4.0.0 beta, was ported to PHP5. Database access has switched from PEAR to PDO. A script is included to help port existing projects. This version of SiteManager no longer uses PEAR DB - it uses the PDO database routines in PHP5 so there are a few changes to make. There is a script included in bin/php4tophp5.php which you can run on your current scripts to make most of the changes
</blockquote>
<p>
Currently, you can <a href="http://www.roadsend.com/download/siteManager4-beta.zip">download the latest beta</a> from their website and check out <a href="http://code.roadsend.com/siteManager">the Trac website</a> for the project to keep up with the latest advancements.
</p>]]></description>
      <pubDate>Thu, 26 Jul 2007 09:33:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Wiadomosc.info: phpQuery - jQuery port for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8076</guid>
      <link>http://www.phpdeveloper.org/news/8076</link>
      <description><![CDATA[<p>
A new project has been pointed out to us today - <a href="http://wiadomosc.info/plainTemplate/">phpQuery</a>, a port of jQuery to PHP:
</p>
<blockquote>
phpQuery is PHP-port of well known and great web2.0 JS library, which <a href="http://jquery.com/">jQuery</a> is. It's not something like <a href="http://projects.cyberlot.net/trac/jqpie/wiki">JQPie</a>, which is form of JS code generator and server-client layer.
</blockquote>
<p>
They include a <a href="http://wiadomosc.info/plainTemplate/">short example</a> of adding content to a page (a new list element) that uses the DOM extension in PHP5 to make the action happen. You can check out the library as a part of their <a href="http://wiadomosc.info/plainTemplate/plainTemplate-0.1-alpha.zip">plainTemplate package</a>.
</p>]]></description>
      <pubDate>Tue, 19 Jun 2007 09:20:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: PHP and Serial Ports]]></title>
      <guid>http://www.phpdeveloper.org/news/7630</guid>
      <link>http://www.phpdeveloper.org/news/7630</link>
      <description><![CDATA[<p>
In a recent post to his blog, <i>Vinu Thomas</i> <a href="http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/">posted about</a> a PHP extension that allows your scripts to directly interact with the serial ports on the web server its running on.
</p>
<blockquote>
Last month there were at least two inquiries at the Bangalore PHP UG on how to get PHP to communicate with the server's serial port.  I didn't think it was possible, but here's what a quick google search turned up...
</blockquote>
<p>
Two tools popped up on the radar - the <a href="http://www.easyvitools.com/phpserial/index.html">PHP Serial Extension</a> and the <a href="http://www.phpclasses.org/browse/package/3679.html">PHP Serial Class</a>. Both have their benefits, and both can be used for the same kinds of functionality - one for the Windows side and the other for Linux-ish machines. The first seems to be a bit more flexible in its approach, though.
</p>]]></description>
      <pubDate>Mon, 16 Apr 2007 10:18:00 -0500</pubDate>
    </item>
  </channel>
</rss>
