<?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, 24 May 2013 06:18:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell: PHP and Gearman: Unable to connect after upgrade]]></title>
      <guid>http://www.phpdeveloper.org/news/19252</guid>
      <link>http://www.phpdeveloper.org/news/19252</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has shared some advice about <a href="http://www.lornajane.net/posts/2013/php-and-gearman-unable-to-connect-after-upgrade">correcting an issue with PHP and Gearman</a> after she did an upgrade via PECL.
</p>
<blockquote>
I upgraded PHP and related pecl modules on my development machine today, and ran into a problem with Gearman. Actually I ran into more than one! Firstly the challenge of getting the newest pecl version working with a gearman version. Then an error where my existing PHP application couldn't connect to gearman after upgrade.
</blockquote>
<p>
Running on Ubuntu, she found <a href="http://www.phamviet.net/2012/10/10/ubuntu-php-5-4-x-and-gearman-troubleshooting/">this tutorial</a> helpful in getting Gearman back into a working state and installed (version 1.1.1). The "unable to connect" error turned out to be a change in how the Gearman connection needed to be made - the addition of a port to the connection string made things work again. 
</p>]]></description>
      <pubDate>Thu, 28 Feb 2013 12:55:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Liip Blog: 2-Step Verification with Google Authenticator and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16795</guid>
      <link>http://www.phpdeveloper.org/news/16795</link>
      <description><![CDATA[<p>
On the Liip blog there's <a href="http://blog.liip.ch/archive/2011/08/29/2-step-verification-with-google-authenticator-and-php.html">a recent post</a> talking about a tool Google offers to help you authenticate your users, a one-time passcode generator called <a href="http://code.google.com/p/google-authenticator/">Google Authenticator</a>. The post talks about a PHP port of the same idea.
</p>
<blockquote>
The main point about 2-step verification is that something else than your computer provides that token. If it's on your computer and that one gets stolen (or hacked into), it won't help much for the additional security. That's why you need a second device for those tokens. Some banks do that with SMS/Text Messages (Facebook, too), other give you special devices for that (eg. RSA keys) and the last group does it with your smartphone.
</blockquote>
<p>
At the request of a client, they created a tool that did just this, but for PHP. As a result, they created the <a href="https://github.com/chregu/GoogleAuthenticator.php">GoogleAuthenticator</a> library that makes it easy to implement in your application. There's even <a href="https://github.com/chregu/GoogleAuthenticator.php/tree/master/web">an example</a> of it in use. For more information about the Google Authenticator tool, see <a href="http://code.google.com/p/google-authenticator/">this page on Google Code</a>.
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 09:53:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes' Blog: PHP CSSReg]]></title>
      <guid>http://www.phpdeveloper.org/news/16757</guid>
      <link>http://www.phpdeveloper.org/news/16757</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has a <a href="http://www.thespanner.co.uk/2011/08/18/php-cssreg/">recent post</a> pointing out the port of a project of his, <a href="http://www.thespanner.co.uk/category/cssreg/">CSSReg</a> (a filtering tool for user-provided stylesheets) over to PHP.
</p>
<blockquote>
Just a quick post to mention the excellent work by Norman Hippert aka <a href="http://twitter.com/thewildcat">@thewildcat</a>, he successfully converted my Javascript based CSSReg into PHP. I was meaning to do this but never found the time so it's pretty awesome that not only did thewildcat convert the code but found some nice bugs in my code and fixed them. Great work Norman thanks very much!
</blockquote>
<p>
You can see a demo <a href="http://ent.the-wildcat.de/cssreg/index.php">of it here</a> and grab the source <a href="http://www.businessinfo.co.uk/labs/CSSReg/cssreg.zip">as a download here</a>. You can find out more about the origins of CSSReg (and some of its siblings) in <a href="http://www.thespanner.co.uk/2010/05/05/regular-expression-sandboxing/">this other post</a> from <i>Gareth</i>.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 10:21:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Maarten Balliauw's Blog: A client side Glimpse to your PHP application]]></title>
      <guid>http://www.phpdeveloper.org/news/16669</guid>
      <link>http://www.phpdeveloper.org/news/16669</link>
      <description><![CDATA[<p>
<i>Maarten Balliauw</i> has <a href="http://blog.maartenballiauw.be/post/2011/08/02/A-client-side-Glimpse-to-your-PHP-application.aspx">announced the release</a> of a PHP port of a powerful tool for server-side introspection of your applications - <a href="https://github.com/Glimpse/Glimpse.PHP">Glimpse for PHP</a>.
</p>
<blockquote>
A few months ago, the .NET world was surprised with a magnificent tool called "<a href="http://getglimpse.com/">Glimpse</a>". Today I'm pleased to release a <a href="https://github.com/Glimpse/Glimpse.PHP">first draft of a PHP version for Glimpse</a>! Now what is this Glimpse thing… Well: "what Firebug is for the client, Glimpse does for the server... in other words, a client side Glimpse into whats going on in your server."
</blockquote>
<p>
He includes a of how the introspection works and some <a href="http://blog.maartenballiauw.be/post/2011/08/02/A-client-side-Glimpse-to-your-PHP-application.aspx">sample code</a> using a phar to add it to your PHP application. You can see it in action in <a href="http://www.screenr.com/27ds">this screencast</a> based on the PHP Azure Contest website. He also shows one very cool feature that allows for cross-device tracking of requests. You can find this PHP port of Glimpse <a href="https://github.com/Glimpse/Glimpse.PHP">on github</a>.
</p>]]></description>
      <pubDate>Wed, 03 Aug 2011 11:28:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jeff Moser's Blog: Notes from porting C# code to PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15337</guid>
      <link>http://www.phpdeveloper.org/news/15337</link>
      <description><![CDATA[<p>
In a new post to his blog  <i>Jeff Moser</i> takes you through some of his experiences in <a href="http://www.moserware.com/2010/10/notes-from-porting-c-code-to-php.html">port code from C# to PHP</a> as a first-time PHPer and learning right from a book.
</p>
<blockquote>
After years of hearing negative things about PHP, I had been led to believe that touching it would rot my brain. Ok, maybe that's a bit much, but its reputation had me believe it was full of bad problems. Even the cool kids had issues with PHP. But I thought that it couldn't be too bad because there was that one website that gets a few hits using a dialect of it. When <a href="http://kaggle.com/">Kaggle</a> offered to sponsor a port of my <a href="http://www.moserware.com/2010/03/computing-your-skill.html">TrueSkill</a> <a href="http://github.com/moserware/Skills">C# code</a> to PHP, I thought I'd finally have my first real encounter with PHP.
</blockquote>
<p>
He starts with a few disclaimers, noting that the structure of the application was kept largely the same and that he didn't go much into the web or database functionality that PHP's well known for. He talks about the book he chose to learn from (<a href="http://www.amazon.com/gp/product/0470413964?ie=UTF8&tag=moserware-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0470413964">Beginning PHP 5.3</a>) and includes some excerpts from the author talking about the PHP language. He splits up the rest of the post into several different sections covering his thoughts on the whole process:
</p>
<ul>
<li>The Good Parts
<li>The "When in Rome..." Parts
<li>The "Ok, I guess" Parts
<li>The Frustrating Parts
</ul>
<p>
Unfortunately, the "Good" parts section is one of the smallest.
</p>]]></description>
      <pubDate>Tue, 26 Oct 2010 12:49:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Port Scanning and Service Status Checking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12297</guid>
      <link>http://www.phpdeveloper.org/news/12297</link>
      <description><![CDATA[<p>
On the DeveloperTutorials.com site today there's <a href="http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page1.html">a new tutorial</a> showing the creation of a port scanner with PHP - a tool that, given some of the familiar ports that services (like web or email servers) run on, can check to see if they're responding.
</p>
<blockquote>
While building web applications, it's often important to keep an eye on the other services running on your server. 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>
Their example makes a socket connection to the remote port to see if there's a valid hookup. The wrap this inside a loop for ports 1 through 1000 to see what ports are open and responding on your local machine (doing this on a remote machine is just asking for trouble).
</p>
<p>
Their full example defines some of the common ports in an array and loops to check on their status. It sets out a base you can build on top of with things like their suggestions - logging scan results, repoting downtime and running a service-specific task.
</p>]]></description>
      <pubDate>Wed, 08 Apr 2009 08:49:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ant Phillips' Blog: Integrating SAP NetWeaver in Zero PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12177</guid>
      <link>http://www.phpdeveloper.org/news/12177</link>
      <description><![CDATA[<p>
In a <a href="http://antblah.blogspot.com/2009/03/integrating-sap-netweaver-in-zero-php.html">recent post</a> to his blog <i>Ant Phillips</i> looks at how you can integrate the SAP Netweaver softare into Zero PHP (a Java PHP clone).
</p>
<blockquote>
I thought it would be interesting to hook up a Zero PHP application with a SAP NetWeaver system. So last weekend I summoned up the courage and, armed with a bottle of red wine, set about the task. Surprisingly enough it wasn't too difficult (setting aside finding 20GB of disk space needed by the installer).
</blockquote>
<p>
He talks about making the connection via SAP's <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm">JCo</a> middleware component and the <a href="http://www.projectzero.org/zero/sebring/latest/docs/zero.devguide.doc/zero.php/ZeroAdvancedPHPJavaBridge.html">PHP/Java bridge</a> that comes with the standard Zero installation. Code is included showing how to make the connection and grab information from the SAP data store.
</p>]]></description>
      <pubDate>Fri, 20 Mar 2009 09:02:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: PHP functions in Javascript using PHP.JS]]></title>
      <guid>http://www.phpdeveloper.org/news/11707</guid>
      <link>http://www.phpdeveloper.org/news/11707</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2009/01/08/php-functions-in-javascript-using-phpjs/">mentioned a project</a> that is trying to port as many of the standard PHP functions over to Javascript as possible - <a href="http://phpjs.org">PHP.JS</a>.
</p>
<blockquote>
PHP programmers usually have to handle HTML & Javascript front-end coding as well and I'm sure a lot of us have been frustrated with the lack of those easy to use PHP functions in Javascript like those array, encode/decode and string functions. Here's a Javascript project which provides you just that.
</blockquote>
<p>
The project currently has over two hundred and thirty <a href="http://phpjs.org/functions/index">functions ported</a> and put into a single, easy to download <a href="http://phpjs.org/packages/index">library</a> (with three versions - normal, mini and packed). Then you're just a script tag away from including it and putting it to good use. You can find out more on the <a href="http://phpjs.org/">PHP.JS homepage</a>.
</p>]]></description>
      <pubDate>Fri, 09 Jan 2009 08:45:12 -0600</pubDate>
    </item>
    <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>
  </channel>
</rss>
