<?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>Sun, 19 May 2013 11:03:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Jones: Using the PHP CLI Webserver to Identify and Test Memory Issues in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18361</guid>
      <link>http://www.phpdeveloper.org/news/18361</link>
      <description><![CDATA[<p>
<i>Chris Jones</i> has a new post today showing how you can <a href="https://blogs.oracle.com/opal/entry/using_the_php_cli_webserver">use PHP 5.4's built-in web server</a> to help test for memory issues in your application (and the language).
</p>
<blockquote>
Rasmus mentioned on IRC how he ran the [command line] tests: simply renaming the ".phpt" test files as ".php", and invoking them through the CLI webserver. The SKIPIF sections get executed, but that doesn't affect the desired outcome of testing multiple HTTP requests with different input scripts. [Here] are some quick shell scripts I put together to automate testing the OCI8 extension with valgrind.
</blockquote>
<p>
He uses the OCI8 extension as an example, showing how to set up these scripts to enable the execution of the tests, fire up the web server and execute Valgrind to help monitor the memory of the execution.
</p>]]></description>
      <pubDate>Wed, 15 Aug 2012 08:35:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Thomas Weinart: Using The PHP 5.4 Webserver On Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/18295</guid>
      <link>http://www.phpdeveloper.org/news/18295</link>
      <description><![CDATA[<p>
<i>Thomas Weinert</i> has posted a helpful hint for those developing their PHP applications in a Windows environment - how you can <a href="http://www.a-basketful-of-papayas.net/2012/07/using-php-54-webserver-on-windows.html">use the PHP 5.4 built-in webserver</a> to test your applications.
</p>
<blockquote>
PHP 5.4 has an built-in webserver. For local development it is not necessary to install Apache Httpd or another webserver anymore. You can just start an server from the command line. [...] To make things a little easier you can create a windows shortcut.
</blockquote>
<p>
He <a href="http://2.bp.blogspot.com/-rMcALNnQ4OE/UBbtg8MvtvI/AAAAAAAAC9I/MXFyvnlGWKU/s1600/00-console.png">shows what it looks like</a> running in a console and steps you through the process of setting up the shortcut, giving you the flexibility to contril things like window size and buffer size.
</p>]]></description>
      <pubDate>Tue, 31 Jul 2012 10:35:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Taking Advantage of PHP's Built-in Server]]></title>
      <guid>http://www.phpdeveloper.org/news/17644</guid>
      <link>http://www.phpdeveloper.org/news/17644</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial for those on the bleeding edge of PHP using the latest released version (5.4) and a feature that comes with it - <a href="http://phpmaster.com/taking-advantage-of-phps-built-in-server/">using the built-in webserver</a> that comes bundled for testing purposes.
</p>
<blockquote>
One of the cooler features of the new PHP 5.4 release is a built-in web server designed specifically for development and testing. Now you can write and test your code without having to have a full-fledged LAMP configuration - just launch a the built-in server from the command line, test your code, and then shut it down when you're finished. [...] In this article I'll explain some basic uses of the new built-in server and show you how to build a portable personal development server useful for quickly testing your applications
</blockquote>
<p>
He starts with a look at how to start up the web server (a simple command line switch and host/port definition) and the resulting default <a href="http://php.net/phpinfo">phpinfo</a> page it displays. Other options include the ability to specify a document root for your server and create a sort of "front controller" for it to route requests. They show how to create a simple application based on this that can dynamically load in the index file, a router and pass the request off to the correct file. Their example includes some "niceties" too like logging, "hosts allowed" and checks for requesting directories.
</p>
<p>
You can find their full code for this example <a href="http://phpmaster.com/taking-advantage-of-phps-built-in-server">over on github</a>.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 08:17:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP 5.4 Built In Webserver]]></title>
      <guid>http://www.phpdeveloper.org/news/17464</guid>
      <link>http://www.phpdeveloper.org/news/17464</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has <a href="http://www.lornajane.net/posts/2012/php-5-4-built-in-webserver">posted a quick tutorial</a> about a feature of the upcoming PHP 5.4 release, the built-in web server, and some tips on doing things like routing requests and changing the hostname.
</p>
<blockquote>
One of the big features arriving with PHP 5.4 is the addition of a built-in basic webserver for use in development environments. Quite a few of the other scripting languages have something like this so I'm very pleased to see it in PHP. Using a server like this makes it easy to quickly try out some scripts without needing to configure apache or really do anything much! I had to look up a few things to get started, so I thought I'd write them down for posterity.
</blockquote>
<p>
She includes instructions on how to get the server up and running from the command line, updating the location of the document root with a command line option and using a simple "routing.php" script to act as a front controller. Changing the hostname is as simple as changing "localhost" to something else when starting the server. 
</p>]]></description>
      <pubDate>Mon, 30 Jan 2012 11:35:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: PHP 5.4 Will Have a Built-in Web Server]]></title>
      <guid>http://www.phpdeveloper.org/news/17030</guid>
      <link>http://www.phpdeveloper.org/news/17030</link>
      <description><![CDATA[<p>
As is mentioned in <a href="http://css.dzone.com/news/php-54-will-have-built-web">this new post</a> to DZone.com, one of the features of the upcoming PHP 5.4 release, including things like traits and array dereferencing support, will also have an interesting new feature - a built-in simple web server.
</p>
<blockquote>
Yet another new feature to look forward to in PHP 5.4.0 - the CLI SAPI will now provide a built-in web server which is geared toward developmental purposes.  It shouldn't be used in production right now. 
</blockquote>
<p>
The PHP manual <a href="http://php.net/manual/en/features.commandline.webserver.php">has been updated</a> with the latest on this upcoming feature:
</p>
<blockquote>
URI requests are served from the current working directory where PHP was started, unless the -t option is used to specify an explicit document root. [...] If a PHP file is given on the command line when the web server is started it is treated as a "router" script for the web server. The script is run at the start of each HTTP request. If this script returns FALSE, then the requested resource is returned as-is. Otherwise the script's output is returned to the browser.
</blockquote>
<p>
The PHP 5.4.x series is still in beta as of the time of this post - you can download the beta1 on the <a href="http://www.php.net/downloads.php">downloads section</a> of the PHP site (or the <a href="http://windows.php.net/download/">Windows binaries</a>).
</p>]]></description>
      <pubDate>Mon, 24 Oct 2011 09:24:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP Podcast Episode 10 - the Built-in Web Server, PHP 5.3.6 & PHP.js]]></title>
      <guid>http://www.phpdeveloper.org/news/16120</guid>
      <link>http://www.phpdeveloper.org/news/16120</link>
      <description><![CDATA[<p>
PHPClasses.org have posted their latest episode of the "Lately in PHP" podcast today, a discussion between <i>Manuel Lemos</i> and <i>Ernani Joppert</i> about <a href="http://www.phpclasses.org/blog/post/144-PHP-builtin-Web-server-PHP-536-and-PHPJS--Lately-in-PHP-podcast-episode-10.html">the built-in web server</a> that's planned for inclusion in future releases of the PHP language.
</p>
<blockquote>
PHP is going to come with a built-in Web server, so you will no longer need Apache or any other Web server software to run PHP applications. This is the main topic discussed by Manuel Lemos and Ernani Joppert in the episode 10 of the Lately in PHP podcast.
</blockquote>
<p>
They also talk about some security fixes and the PHP.js project. As usual, you can listen to this latest episode either through the <a href="http://www.phpclasses.org/blog/post/144-PHP-builtin-Web-server-PHP-536-and-PHPJS--Lately-in-PHP-podcast-episode-10.html">in-page player</a>, by <a href="http://www.phpclasses.org/blog/post/144/file/56/name/Lately-In-PHP-10.mp3">downloading the mp3</a> or by <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to their feed</a>.
</p>]]></description>
      <pubDate>Wed, 30 Mar 2011 08:20:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: PHP built in functions map]]></title>
      <guid>http://www.phpdeveloper.org/news/11752</guid>
      <link>http://www.phpdeveloper.org/news/11752</link>
      <description><![CDATA[<p>
<i>Sameer</i> has <a href="http://www.codediesel.com/php/php-built-in-functions-map/">put together a few images</a>, the results from the <a href="http://www.wordle.net/">Wordle website</a> when he plugged in the names of the built-in functions included in PHP.
</p>
<blockquote>
The application is simple. You enter a bunch of text and Wordle does the rest. The applet provides options to change color, font and layout. Just for fun I created a Wordle cloud to display php's built in functions. Two samples are shown <a href="http://www.codediesel.com/php/php-built-in-functions-map/">below</a>. The size of the font in the cloud is proportional to the number of functions starting with the particular name.
</blockquote>
<p>
Among the largest on the list are words like "array", "get", "mysql" and "mcrypt". He used a call to the get_defined_functions() method and looped through the "internal" subarray to build his lists.
</p>]]></description>
      <pubDate>Fri, 16 Jan 2009 09:31:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: 3D graphics in pure PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6665</guid>
      <link>http://www.phpdeveloper.org/news/6665</link>
      <description><![CDATA[<p>
As spotlighted by the folks over on PHPClasses.org, there's a developer, <i>L&aacute;szl&oacute; Zsidi</i>, who has contributed <a href="http://www.phpclasses.org/browse/author/283569.html">several packages</a> to the repository - including some that work to create 3D images with just the built-in functions PHP provides.
</p>
<blockquote>
He has developed several pure PHP components that implement impressive 3D animated graphics, like a 3D objects rendering engine, emulate a waving flag or the reflex of an image near a lake. The generated frames are combined into a single animated GIF with another pure PHP component also written by L&aacute;szl&oacute;. All these components were nominated to the PHP Programming Innovation Award for the evident creativity, demonstrating that PHP can be used for non-trivial software applications.
</blockquote>
<p>
Some of the libraries in the listing include:
<ul>
<li><a href="http://www.phpclasses.org/browse/package/3234.html">Animated GIF into images</a>
<li><a href="http://www.phpclasses.org/browse/package/3157.html">Image Flag Effect</a>
<li><a href="http://www.phpclasses.org/browse/package/3355.html">Text 3D</a>
<li><a href="http://www.phpclasses.org/browse/package/3358.html">FXLake effect</a>
<li><a href="http://www.phpclasses.org/browse/package/3364.html">Convex 3D</a>
</ul>
</p>]]></description>
      <pubDate>Wed, 08 Nov 2006 08:13:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: Forms Validation with CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6644</guid>
      <link>http://www.phpdeveloper.org/news/6644</link>
      <description><![CDATA[<p>
In <a href="http://www.developer.com/open/article.php/3642016">this new tutorial</a> from Developer.com, they take one of the popular PHP frameworks currently - CakePHP - and demonstrate how to make a simple form, complete with validation.
</p>
<p>
They start with a brief look at what CakePHP is and where you can <a href="http://www.cakephp.org/">get it from</a> as well as the basics of input validation concepts. From there, it's on to the default validators that are included with the framework.
</p>
<blockquote>
CakePHP offers several default validators capable of ensuring a value is a valid email address (VALID_EMAIL), year (VALID_YEAR), number (VALID_NUMBER), or non-empty (VALID_NOT_EMPTY).
</blockquote>
<p>
Thanks to these built-in validation methods, some of the most common input validations are a snap. If you need a little something more, though, the framework has you covered there too with custom validators - as easy to implement as its preset counterparts. Finally, <a href="http://www.developer.com/open/article.php/3642016">they show</a> how to set custom messages in your form, both error and notification, and tie it all together in a simple form that validates the input for a "team name" field to ensure it's all alpha characters.
</p>]]></description>
      <pubDate>Mon, 06 Nov 2006 07:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jason Sheet's Blog: Soundex implemented in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5458</guid>
      <link>http://www.phpdeveloper.org/news/5458</link>
      <description><![CDATA[<p>
On <i>Jason Sheet</i>'s blog, there's a <a href="http://blogs.idahoimageworks.com/jsheets/index.php?/archives/8-Soundex-implemented-in-PHP.html">new post</a> that offers up a brief tutorial on implementing the soundex functionality in PHP.
</p>
<quote>
<i>
<p>
Soundex is an algorithim to help determine if a word sounds like another word; it is commonly used to detect words that are incorrectly spelled or to make the suggestion "did you mean ? instead of !?"  For example if you typed in smythe using soundex a program could look for other names that sound like it and find that smith and smythe sound alike.
</p>
<p>
In this article I will demonstrate a PHP implementation of soundex, in practice this implementation has little value because PHP itself has soundex() function already but this article should help you understand how it works better.
</p>
</i>
</quote>
<p>
He <a href="http://blogs.idahoimageworks.com/jsheets/index.php?/archives/8-Soundex-implemented-in-PHP.html">jumps right in</a>, mentioning the steps the script will take (seven of them) before getting right to the code. He's written up his own soundex functionality packaged up nicely in a reusable function and has even compared it to the built-in PHP <a href="http://us2.php.net/manual/en/function.soundex.php">soundex function</a> for accuracy.
</p>]]></description>
      <pubDate>Sat, 27 May 2006 11:52:57 -0500</pubDate>
    </item>
  </channel>
</rss>
