<?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>Sat, 18 May 2013 22:52:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Codeception: Codeception released with CodeCoverage support]]></title>
      <guid>http://www.phpdeveloper.org/news/19014</guid>
      <link>http://www.phpdeveloper.org/news/19014</link>
      <description><![CDATA[<p>
The Codeception testing tool has <a href="http://codeception.com/01-08-2013/codeception-codecoverage.html">released a new major update</a> with some interesting new features - the expected feature for generating code coverage reports (similar to <a href="http://phpunit.de">other</a> tools) but there's also the idea of "remote code coverage" introduced.
</p>
<blockquote>
There is no magic in local codecoverage. XDebug and PHP_CodeCoverage libraries do their job. The tricky thing is remote codecoverage. We attach small script into application's front controller. When a special header is sent this script starts to collect coverage information. And in the end of tests, this data is merged, serialized and sent back to Codeception. So you can test and collect coverage report even on staging servers in real environment.
</blockquote>
<p>
They also mention a few other updates in the release - new Redis and MongoDb modules, UX improvements and the normal bugfixes. You can find out more about the code coverage feature in <a href=""http://codeception.com/docs/11-CodeCoverage">their manual</a> or just about the project in general from <a href="http://codeception.com">the main site</a>.
</p>]]></description>
      <pubDate>Wed, 09 Jan 2013 11:14:19 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Using an Access Database with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17927</guid>
      <link>http://www.phpdeveloper.org/news/17927</link>
      <description><![CDATA[<p>
On the PHPMaster.com site there's a new tutorial (from <i>David Francis</i>) about <a href="http://phpmaster.com/using-an-access-database-with-php/">connecting to a database</a> (a basic introduction using <a href="http://php.net/pdo">PDO</a>) and doing some of the common operations with the connection.
</p>
<blockquote>
Wouldn't it have been better for them to able to maintain their database where ever they were? Of course, but how? Simple - put it online.  [...] In this article I'll focus on the essential elements of PHP you'll need to use an existing Access database online. One other item that's standard with a Windows installation is the availability of ODBC drivers. These are essential for the use of Access from PHP.
</blockquote>
<p>
He includes a sample database structure (with "product", "product_category" and "category" tables)  and includes some sample code showing how to connect to the remote database and perform some basic actions - select, update, insert and delete
</p>]]></description>
      <pubDate>Tue, 08 May 2012 14:57:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: Remote Debugging with the Zend Debugger and PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/17888</guid>
      <link>http://www.phpdeveloper.org/news/17888</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has <a href="http://www.eschrade.com/page/remote-debugging-with-the-zend-debugger-and-phpunit/">a quick new post</a> with a one-liner you can use to get remote debugging working with Zend Debugger and PHPUnit.
</p>
<blockquote>
I'm trying to do some remote debugging with PHPUnit on a remote system.  I was following the rules I had <a href="http://www.eschrade.com/page/debugging-a-php-cli-script/">written about in a previous article</a> but for some reason I could not get path mapping to work.  So I figured I'd ping the Studio lead developer because as soon as I did that I'd get it to work.  Well, that's what happened. 
</blockquote>
<p>
His fix comes in the form of setting a command-line parameter, QUERY_STRING, with the correct parameter order so the paths will get mapped back to the correct project. This parameter is a URL-encoded set of parameters that do things like start the debugging, set up the hostname for the debugger to point to and map the "original URL" back to your choice of values.
</p>]]></description>
      <pubDate>Tue, 01 May 2012 09:27:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Voices of the ElePHPant Podcast: Interview with Eli White]]></title>
      <guid>http://www.phpdeveloper.org/news/17859</guid>
      <link>http://www.phpdeveloper.org/news/17859</link>
      <description><![CDATA[<p>
The Voices of the ElePHPant podcast has released their latest episode, another interview with a member of the PHP community. This time it's a <a href="http://voicesoftheelephpant.com/2012/04/24/interview-with-eli-white/">chat with Eli White</a> of MojoLive.
</p>
<p>
<i>Cal</i>'s three questions for <i>Eli</i> are:
</p>
<ul>
<li>What advice do you have for managers that want to hire a remote developer?
<li>Of the three work experiences (US Gov't, Startup, Enterprise) which did you like the best and why?
<li>With all of the resume sites out there [...] why did <a href="http://mojolive.com">MojoLive</a> go into this space and what makes it different enough to stand out?
</ul>
<p>
You can listen to this latest episode either via the <a href="http://voicesoftheelephpant.com/2012/04/24/interview-with-eli-white/">in-page player</a>, <a href="http://voices.of.the.elephpant.s3.amazonaws.com/vote_049.mp3">downloading the mp3</a> or <a href="http://voicesoftheelephpant.com/feed/podcast/">subscribing to their feed</a>
</p>]]></description>
      <pubDate>Tue, 24 Apr 2012 11:43:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Better Remote Code Development]]></title>
      <guid>http://www.phpdeveloper.org/news/17359</guid>
      <link>http://www.phpdeveloper.org/news/17359</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> is <a href="http://www.littlehart.net/atthekeyboard/2012/01/05/better-remote-code-development/">asking for suggestions</a> to help solve a common problem for developers (remote or otherwise) that have to develop in a non-local setup: a better method for remote code development.
</p>
<blockquote>
I've been playing around with <a href="http://www.sublimetext.com/">Sublime Text</a> (because of the awesome vim bindings) and was thinking about why do I always have to be logged into the remote server to do my work. Normally I connect using SSH, then attach to my <a href="http://tmux.sourceforge.net/">tmux</a> session and then fire up vim. This is okay but it lacks a certain elegance in it's approach. [...] What I'm chafing against is having to deal with multiple environments all the time to get my work done.
</blockquote>
<p>
His ultimate goal is to be able to update and commit code without having to be logged into the remote server - essentially to replicate the local development experience regardless of the underlying technology. Have a suggestion or a method that's currently working for you? <a href="http://www.littlehart.net/atthekeyboard/2012/01/05/better-remote-code-development/#comments">Leave him a comment</a>!
</p>]]></description>
      <pubDate>Fri, 06 Jan 2012 11:02:55 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP Podcast Episode 18 - The Debate on Remote Work for Web Developers]]></title>
      <guid>http://www.phpdeveloper.org/news/17206</guid>
      <link>http://www.phpdeveloper.org/news/17206</link>
      <description><![CDATA[<p>
On the PHPClasses.org site they've posted the <a href="http://www.phpclasses.org/blog/post/166-The-Debate-on-Remote-Work-for-Web-Developers--Lately-in-PHP-podcast-episode-18.html">latest episode</a> of their "Lately in PHP" podcast. This time the focus is on a recent article that was posted to the site about <a href="http://phpdeveloper.org/news/17187">finding good developers</a> by looking in the right place.
</p>
<blockquote>
The recently published article on attracting talented Web developers by offering remote job positions raised an interesting debate on the challenges, advantages and disadvantages of this way of working. This debate was the main topic of discussion of the episode 18 of the Lately in PHP podcast with Manuel Lemos and Ernani Joppert, who were joined by C&eacute;sar Rodas. C&eacute;sar is a top PHPClasses contributor that has been working remotely for several years for companies around the world.
</blockquote>
<p>
You can listen to this latest episode either via the <a href="http://www.phpclasses.org/blog/post/166-The-Debate-on-Remote-Work-for-Web-Developers--Lately-in-PHP-podcast-episode-18.html">in-page player</a>, by <a href="http://www.phpclasses.org/blog/post/166/file/101/name/Lately-In-PHP-18.mp3">direct download</a> or by <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to their feed</a>.
</p>]]></description>
      <pubDate>Fri, 02 Dec 2011 12:55:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lars Tesmer's Blog: How to Unit Test a Class Making Calls to an URL (or the Filesystem) With PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/16889</guid>
      <link>http://www.phpdeveloper.org/news/16889</link>
      <description><![CDATA[<p>
<i>Lars Tesmer</i> has a suggestion for all of the unit testers out there (you do unit test your code, right?) when needing to test a piece of code that makes a call to something on the file system or a remote resource. Their examples come from tests written against the <a href="https://github.com/kriswallsmith/assetic">Assetic</a> codebase.
</p>
<blockquote>
For our most recent <a href="http://lars-tesmer.com/blog/categories/after-work-hacking/">After Work Hacking</a> my co-workers and me decided to write unit tests for the open source project <a href="https://github.com/kriswallsmith/assetic">Assetic</a>. That turned out to be a better decision than our last one, yet we still ran into an interesting challenge.
</blockquote>
<p>
In testing the HttpAsset class from the tool, they came across the problem - a call to a remote/file resource that could not be tested because of a <a href="http://php.net/manual/en/function.file-get-contents.php">file_get_contents</a> call that depends on an external source. They came up with a few options to try to test this example, some better than others:
</p>
<ul>
<li>Give it a real URL to test with
<li>Wrap the file_get_contents inside of a new class (ex. a "ContentFetcher")
<li>Use <a href="https://github.com/mikey179/vfsStream">vfsStream</a> to mock out the file system in the unit test
</ul>
<p>
In their case, vfsStream couldn't be used due to how the fetch call was made, but the tool can be very handy if you need to mock out an external file system resource.
</p>]]></description>
      <pubDate>Wed, 21 Sep 2011 12:04:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...]]></title>
      <guid>http://www.phpdeveloper.org/news/16712</guid>
      <link>http://www.phpdeveloper.org/news/16712</link>
      <description><![CDATA[<p>
On the Ldeveloper Tech Blog today there's a helpful new post about an error PHP's SOAP extension could throw <a href="http://ldeveloper.blogspot.com/2011/08/php-fatal-error-uncaught-soapfault.html">about not being able to connect to the host</a> despite all settings being correct.
</p>
<blockquote>
I receive this nasty error yesterday and it took me some time to figure out the problem: "Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in...". This ["new SoapClient"] line passes without any problems and this [var_dump on __getFunctions] shows the function prototypes correctly.
</blockquote>
<p>
His script connects to the service as its supposed to but the "could not connect" is still thrown. He found a few references to OpenSSL issues that could cause it, but his code was correct so he turned to the other side - the service itself. As it turns out, it wasn't configured correctly.
</p>
<blockquote>
It was configured to send invalid url and the function calls were using that invalid url. So there are two solutions [...]  the first is to configure the server correctly. The other is to give __doReguest the correct location.
</blockquote>]]></description>
      <pubDate>Fri, 12 Aug 2011 11:38:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Hardening PHP: How to securely include remote code (part 1)]]></title>
      <guid>http://www.phpdeveloper.org/news/16453</guid>
      <link>http://www.phpdeveloper.org/news/16453</link>
      <description><![CDATA[<p>
On the PHP on Windows blog from <a href="http://dzone.com">DZone.com</a> <i>Krzysztof Kotowicz</i> has a new post - part one in a series on securing your PHP application - a look at <a href="http://css.dzone.com/news/hardening-php-how-securely">securely including remote code</a> from a source outside of your application.
</p>
<blockquote>
First post of the series discussing various methods of including remote PHP code in your application - from security standpoint. In this post we discuss the history of remote code execution vulnerabilities in PHP apps and ways to prevent them. We finish off by presenting an unsecure method of including a remote code and describe what is the problem with that method.
</blockquote>
<p>
He looks at the insecurity of a standard include/require, the <a href="http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include">allow_url_include</a> php.ini setting and the issues with using hardcoded locations (like incorrect DNS records pointing to the wrong host).
</p>]]></description>
      <pubDate>Fri, 10 Jun 2011 10:28:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Accessing third-party content with oEmbed and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16041</guid>
      <link>http://www.phpdeveloper.org/news/16041</link>
      <description><![CDATA[<p>
On IBM's developerWorks there's <a href="http://www.ibm.com/developerworks/web/library/x-oembed/index.html?ca=drs-">a recent article</a> from <i>Vikram Vaswani</i> about using the <a href="http://www.oembed.com">oEmbed</a> tool to pull content into your site from sources like YouTube, Twitter and Facebook.
</p>
<blockquote>
If you have your photos in Flickr, your videos in YouTube, and your TV shows in Hulu, how do you bring them all into your blog posts on Blogger? Of course, you can do this by hyperlinking to the appropriate content, but wouldn't it be nicer if you could just embed them into your post at the appropriate place? Enter oEmbed.
</blockquote>
<p>
He gives examples showing how to pull in content from a few different places - a video from YouTube, one from Revision3 and an image from deviantART. He also talks about using the oohEmbed service to access additional content on things like Wikipedia, Slideshare and Amazon. There's also a bit at the end looking at an alternative PHP library that could be used to do similar things, php-oembed.
</p>]]></description>
      <pubDate>Mon, 14 Mar 2011 13:42:44 -0500</pubDate>
    </item>
  </channel>
</rss>
