<?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>Thu, 23 May 2013 13:40:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Emanuele Minotto: PHP in a Tweet]]></title>
      <guid>http://www.phpdeveloper.org/news/18479</guid>
      <link>http://www.phpdeveloper.org/news/18479</link>
      <description><![CDATA[<p>
<i>Emanuele Minotto</i> has a recent post with a set of <a href="http://emanueleminotto.wordpress.com/2012/09/13/php-in-a-tweet/">"PHP in a tweet" posts</a> that do all sorts of things.
</p>
<blockquote>
Yesterday an ex colleague tweeted something that captured my attention, so I started thinking to a Twitter-powered <a href="http://en.wikipedia.org/wiki/Code_golf">code golf</a>ing competition. Looking for other examples.
</blockquote>
<p>Tweets included in the list are snippets like:</p>
<ul>
<li>A dependency injection container
<li>A super simple web framework
<li>A microframework
<li>Bypassing <a href="http://php.net/array_intersect">array_intersect</a>
</ul>
<p>
There's some <a href="http://emanueleminotto.wordpress.com/2012/09/13/php-in-a-tweet/">game rules</a> included in the post so you can contribute your own to the <A href="http://emanueleminotto.wordpress.com/2012/09/13/php-in-a-tweet/#comments">the comments</a>. Several have already been added including a base64 encoding variant and getting the extension of a file.
</p>]]></description>
      <pubDate>Fri, 14 Sep 2012 10:19:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: PHP's Output Buffering]]></title>
      <guid>http://www.phpdeveloper.org/news/17230</guid>
      <link>http://www.phpdeveloper.org/news/17230</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Ilia Alshanetsky</i> takes a look at PHP's output buffering feature and some <a href="http://ilia.ws/archives/244-PHPs-Output-Buffering.html">interesting things he found</a> when testing some recent code (hint: it has to do with PHP's "interesting" management of the buffer).
</p>
<blockquote>
While profiling our application I came across a a rather strange memory usage by the ob_start() function. We do use ob_start() quite a bit to defer output of data, which is a common thing in many applications. What was unusual is that 16 calls to ob_start() up chewing through almost 700kb of memory, given that the data being buffered rarely exceeds 1-2kb, this was quite unusual.
</blockquote>
<p>
Through a bit more testing he found that, if a buffer provided for content isn't enough, PHP automatically bumps it up by 10kb each time - a waste of resources if you only need a small subset of that. He includes a small patch he made to the PHP core API that allows for defining a custom buffer size and, if it's not enough, bumps up the buffer size by 1kb instead of 10kb.
</p>]]></description>
      <pubDate>Thu, 08 Dec 2011 10:01:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: fatal: The remote end hung up unexpectedly]]></title>
      <guid>http://www.phpdeveloper.org/news/17089</guid>
      <link>http://www.phpdeveloper.org/news/17089</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has a <a href="http://www.eschrade.com/page/fatal-the-remote-end-hung-up-unexpectedly">quick tip</a> for anyone using <a href="http://phpcloud.com">phpcloud.com</a> and having trouble with git and "remote end hung up" error messages.
</p>
<blockquote>
If  you are using phpcloud.com and are experiencing errors with git [...] and you are trying to push large files (not sure what is defined as "large") you may need to change some git settings.
</blockquote>
<p>
He points out two settings - one for Windows and the other for Linux - that increase the buffer size to handle larger files that might be included in your repository.
</p>]]></description>
      <pubDate>Fri, 04 Nov 2011 12:55:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jeez Tech: Damn Small PHP Frameworks. Because size does matter.]]></title>
      <guid>http://www.phpdeveloper.org/news/13243</guid>
      <link>http://www.phpdeveloper.org/news/13243</link>
      <description><![CDATA[<p>
In <a href="http://jeez.eu/2009/09/12/damn-small-php-frameworks-because-size-does-matter/">this recent post</a> to the Jeez Tech blog they take a look at some of the small, lightweight frameworks out there.
</p>
<p>They look at five different frameworks:</p>
<ul>
<li><a href="http://www.kohanaphp.com/download">Kohana</a>
<li><a href="http://www.rapyd.com/">Rapyd</a>
<li><a href="http://github.com/jmathai/epicode/tree/master">Epicode</a>
<li><a href="http://www.elf-php.com/">ELF PHP</a>
<li><a href="http://www.ngcoders.com/projects/baseapp/baseapp-php-framework-simple-small-swift">BaseApp</a>
</ul>
<p>
A few other frameworks are also mentioned in the comments like the micro-framework <a href="http://limonade.sofa-design.net/">limonade</a> and <a href="http://www.madeam.com/">Madeam</a>.
</p>]]></description>
      <pubDate>Thu, 17 Sep 2009 13:54:22 -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[Stefan Mischook's Blog: Podcast: Structuring PHP Projects]]></title>
      <guid>http://www.phpdeveloper.org/news/11386</guid>
      <link>http://www.phpdeveloper.org/news/11386</link>
      <description><![CDATA[<p>
<i>Stefan Mischook</i> has posted <a href="http://www.killerphp.com/articles/podcast-structuring-php-projects/">a new podcast</a> that gives an overview of things to consider when structuring your application.
</p>
<blockquote>
In the following podcast I go over the key factor when determining how to structure a PHP project. In a nutshell, it comes down to the size and complexity of the job. For the details, listen to me yap.
</blockquote>
<p>
You can download the mp3 <a href="http://www.killerphp.com/articles/wp-content/uploads/2008/11/php-podcast-project-structure.mp3">directly from his site</a>. For more great PHP tutorials, check out his <a href="http://www.killerphp.com/articles/category/php-videos/">videos section</a>.
</p>]]></description>
      <pubDate>Tue, 11 Nov 2008 10:25:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kae Verens' Blog: pre-parsing HTML for incorrectly-sized images]]></title>
      <guid>http://www.phpdeveloper.org/news/10707</guid>
      <link>http://www.phpdeveloper.org/news/10707</link>
      <description><![CDATA[<p>
<i>Kae Verens</i> has <a href="http://verens.com/archives/2008/07/27/pre-parsing-html-for-incorrectly-sized-images/">a recent blog post</a> that looks at a method for helping to protect users from themselves when working with images - a method for handling ones incorrectly sized.
</p>
<blockquote>
Every now and then, I get a call from a client who is puzzled why their site is running slow. I would look at their page and see an innocuous image inserted into a paragraph. When I examine the image, though, I see that the client has artificially resized the image using HTML. One recent example showed on-screen as a 300px-wide image. When I examined it, it was actually 3000px wide (approx).
</blockquote>
<p>
The <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">script</a> looks through some HTML markup and, based on the sizes in the image tags, resizes the images appropriately. An <A href="http://verens.com/demos/html_imageresizer/html_imageresizer.php">example</a> and <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">the source</a> are provided.
</p>]]></description>
      <pubDate>Tue, 29 Jul 2008 12:03:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Etienne Kneuss' Blog: SplFastArray to speed up your PHP arrays]]></title>
      <guid>http://www.phpdeveloper.org/news/10371</guid>
      <link>http://www.phpdeveloper.org/news/10371</link>
      <description><![CDATA[<p>
<i>Etienne Kneuss</i> has <a href="http://www.colder.ch/news/06-07-2008/33/splfastarray-to-speed-up-.html">posted about</a> a new part of the Standard PHP Library that creates arrays that are up to thirty percent faster than normal methods - SplFastArray.
</p>
<blockquote>
Antony got the idea to implement a C-like array wrapper in SPL: SplFastArray. The main advantage of that class is performance, it's indeed faster than PHP arrays. How so? No free lunch: The speedup comes from the fact that non-numeric indexes are not allowed and that the array is of fixed size.
</blockquote>
<p>
The code sample shows the setting of the size for the array (and changing it) with a var_dump of the output result. This method is always faster than normal arrays, it just varies how much from system to system (anywhere from ten to thirty percent).
</p>]]></description>
      <pubDate>Mon, 09 Jun 2008 12:54:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Retrieving Information on Selected Files with a PHP 5 File Uploader]]></title>
      <guid>http://www.phpdeveloper.org/news/9866</guid>
      <link>http://www.phpdeveloper.org/news/9866</link>
      <description><![CDATA[<p>
DevShed has continued their series (here's <a href="http://www.phpdeveloper.org/news/9830">part one</a>) looking at the use of file uploading in your PHP scripts. They build on that foundation and add in some more useful features <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/">this time</a>:
</p>
<blockquote>
The initial script in the first tutorial of this series lacked some important features, such as the implementation of an effective error handling module and the ability to check the MIME type and size of the file being uploaded. In this second installment of the series, I'm going to improve the logic of the script from the first tutorial to provide it with the capacity to retrieve useful information concerning the entire file uploading process.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/1/">look back</a> at the previous tutorial to remind you of some of the concepts and then move on to show you how to <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/2/">get information</a> about the file (like the MIME type, name and size of the uploaded file). The <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/3/">last page</a> is just the full source code for the cut and pasters out there.
</p>]]></description>
      <pubDate>Thu, 27 Mar 2008 09:31:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ian Selby's Blog: Uploading Large Files With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8656</guid>
      <link>http://www.phpdeveloper.org/news/8656</link>
      <description><![CDATA[<p>
<i>Ian Selby</i>, working for a startup and building a lot of code up from scratch <a href="http://www.gen-x-design.com/archives/uploading-large-files-with-php">came across a problem</a> - the upload of pretty large files via PHP:
</p>
<blockquote>
I have found myself in a position where I am writing scripts that may need to upload fairly large files. My scripts were timing out, and I couldn't seem to figure out why. For the unitiated, there are some standard things that you usually do to both your php.ini and in your script in this situation [...] However, it turns out there are some other php.ini config variables that you may need to look at.
</blockquote>
<p>
The "usual suspects" list includes changing the max_upload_size value and adjusting the script timeout. The other settings he mentions, though, are things like memory_limit, post_max_size and max_input_time to help increase the default times that PHP uses on most page executions.
</p>]]></description>
      <pubDate>Fri, 14 Sep 2007 13:03:54 -0500</pubDate>
    </item>
  </channel>
</rss>
