<?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 02:52:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: Performance Analysis of isset() vs array_key_exists()]]></title>
      <guid>http://www.phpdeveloper.org/news/17629</guid>
      <link>http://www.phpdeveloper.org/news/17629</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has <a href="http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html">posted about a performance difference</a> he's found between using the <a href="http://php.net/isset">isset</a> and <a href="http://php.net/array_key_exists">array_key_exists</a> functions in PHP to see if a value exists.
</p>
<blockquote>
At Confoo I had an interesting conversation with Guilherme Blanco regarding the fact that in Doctrine 2 they had a performance issue due to usage of array_key_exists() and how it was significantly slower than isset(). His anecdotal example was that doing isset() took 0.5 seconds, while array_key_exists() for the same operation took 5 seconds! That seemed wrong [...] so, I've decided to do a quick benchmark using a 5,000 element array.
</blockquote>
<p>
His benchmarking code is included - it just loads up a simple data set from a file of "words" and measures the <a href="http://php.net/microtime">microtime</a> between the isset and array_key_exists calls. His results do show that isset is the faster of the two (by 2.5x) but it's still a super small micro-optimization that won't gain you much in the end.
</p>
<blockquote>
The bottom line is that if your application does not need to distinguish between an array key that does not exist and one whose value happens to be NULL you should use isset() because it happens to be a little faster.
</blockquote>]]></description>
      <pubDate>Tue, 06 Mar 2012 08:44:31 -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[Martin Sikora's Blog: Storing arrays using JSON, serialize and var_export]]></title>
      <guid>http://www.phpdeveloper.org/news/16692</guid>
      <link>http://www.phpdeveloper.org/news/16692</link>
      <description><![CDATA[<p>
<i>Martin Sikora</i> was working on an application that used a large dataset (in an array) and <a href="http://www.martinsikora.com/storing-arrays-using-json-serialize-and-var-export">found some interesting things</a> in regards to PHP's resulting loading time and saving time in four different types of arrays.
</p>
<blockquote>
Recently I was dealing with precessing and storing large arrays in PHP (around 100 000 items) and I found out some quiet surprising facts that are very useful in performance critical applications. [...] When I started looking for some benchmark I found article Cache a large array: JSON, serialize or var_export?. That is really good but I wanted to compare a few more things.
</blockquote>
<p>
He tested with four different array types including associative with an integer value and numeric index with a string value at sizes of 10, 100, 1,000 and 10,000 items. He ran his tests with the <a href="http://php.net/json_encode">json</a> <a href="http://php.net/json_decode">methods, <a href="http://php.net/serialize">serializing</a> them and a <a href="http://php.net/var_export">var_export</a>. There's <a href="http://www.martinsikora.com/storing-arrays-using-json-serialize-and-var-export?">graphs of his results</a> for each included in the post with some interesting variations between the different array types.
</p>]]></description>
      <pubDate>Tue, 09 Aug 2011 09:31:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: ElePHPants - the Next generation]]></title>
      <guid>http://www.phpdeveloper.org/news/15593</guid>
      <link>http://www.phpdeveloper.org/news/15593</link>
      <description><![CDATA[<p>
If you've been trying to get your hands on one of the cuddly little mascots for PHP (the <a href="http://www.google.com/images?hl=en&q=elephpant">elePHPant</a>) but haven't managed to yet, there's <a href="http://www.elephpant.com/content/6eme-generation">some good news</a>! Another run of the fuzzy little animals is being done (the 6th) and this time they're offering something new - pink elePHPants.
</p>
<blockquote>
As we are now out of every of the 5 first generation of the elephpants, it is time to start a 6th. You'll find here all information to include yourself. [...] Fill in your elephpants wishes. We do not need any payement now. We will contact you directly before starting the generation for the actual payement.
</blockquote>
<p>
Their schedule hopes to end the pre-order process on December 20th (just three days away) and to strat production on these pre-orders by January 10th. The end results would be shipped out for delivery in April 2011. If you'd like to lay claim to some of your own, go over to <a href="http://www.elephpant.com/content/6eme-generation">the order form</a> and select the size (large/small) and the color (blue/pink) and fill in the contact info. Unfortunately, because of production restrictions, single elePHPants cannot be ordered, so consider getting together with a local user group and all chipping in for a box!
</p>]]></description>
      <pubDate>Fri, 17 Dec 2010 06:52:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Upload Large Files in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14970</guid>
      <link>http://www.phpdeveloper.org/news/14970</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Craig Buckler</i> talks about uploading large files in your PHP application. He points to two other resources - <a href="http://www.php.net/manual/en/features.file-upload.php">this manual page</a> and <a href="http://articles.sitepoint.com/article/handle-file-uploads-php">this introductory tutorial</a> about handling file uploads to get the ball rolling.
</p>
<blockquote>
One of the most popular uses is image uploads. Your users can submit photographs from a form without resorting to FTP or other convoluted methods. HTML5 and Flash also permit drag and drop, so the operation is likely to become easier as browsers evolve. This is where the problems can begin.
</blockquote>
<p>
He points out the large size of the images most modern cameras work with and how PHP, with its basic settings, can't handle a lot of the resulting images. He mentions the upload_max_filesize and post_max_size settings you can set in either your php.ini or via an .htaccess (or even in your script). There's also a few <a href="http://www.sitepoint.com/blogs/2010/08/17/upload-large-files-in-php/#comments">helpful comments</a> with more tips on large file handling.
</p>]]></description>
      <pubDate>Tue, 17 Aug 2010 08:44:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Programming Facts Blog: Upload large(Big) files in PHP using .htaccess]]></title>
      <guid>http://www.phpdeveloper.org/news/14044</guid>
      <link>http://www.phpdeveloper.org/news/14044</link>
      <description><![CDATA[<p>
<i>Rakshit Patel</i> has posted a tip to the Programming Facts blog that those out there wanting to upload larger files through your application - change your settings <a href="http://www.programmingfacts.com/2010/02/16/upload-largebig-files-php-htaccess/">via one of three ways</a> to tell PHP it's okay.
</p>
<blockquote>
I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size [...] If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.
</blockquote>
<p>
The method's pretty much the same in each of the three methods. You can either have the settings in your httpd.conf (if you have access to it), in the php.ini or in a .htaccess file in the directory your PHP script is in.
</p>]]></description>
      <pubDate>Wed, 17 Feb 2010 13:19:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Young's Blog: Chunking Large Queries with Iterators in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13350</guid>
      <link>http://www.phpdeveloper.org/news/13350</link>
      <description><![CDATA[<p>
Since sometimes you just don't want all of the results of a query back at once, <i>Rob Young</i> has <a href="http://www.roryoung.co.uk/2009/10/06/chunking-large-queries-with-iterators-in-php/">posted a solution</a> of his own using the Iterators included with PHP as a part of the <a href="http://php.net/spl">SPL</a>. His solution is to wrap it in <a href="http://www.roryoung.co.uk/wp-content/uploads/2009/10/ChunkedQueryIterator.phps">a ChunkedQueryIterator</a> that handles the work behind the scenes.
</p>
<blockquote>
When executing large queries it's usually best not to load the whole result set in one go. Memory isn't infinite and PHP isn't renowned for handling it very well. So the obvious answer is to chunk the large query in to lots of smaller queries. [...] We want something to which we can just provide a PDO object, an SQL query and the chunk size. We should then be able to iterate over the resulting object as though it were a single result set.
</blockquote>
<p>
He includes two code snippets of it in action, but asks the question of his readers - "How do you handle large database queries?" - to get some feedback on other alternatives. 
</p>]]></description>
      <pubDate>Wed, 07 Oct 2009 10:42:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Laknath Semage's Blog: PHP + Large files]]></title>
      <guid>http://www.phpdeveloper.org/news/11487</guid>
      <link>http://www.phpdeveloper.org/news/11487</link>
      <description><![CDATA[<p>
<i>Laknath Semage</i> submitted a <a href="http://luckycala.wordpress.com/2008/12/01/php-large-files/">new blog post</a> he's written up about working with large file uploads in your PHP applications.
</p>
<blockquote>
If we want to do large file uploads or database updates with PHP there are few configurations to be done to default settings and I'm putting this as a note to myself (I'm always keep forgetting this) as well as to any one who may find this useful like when importing a large backup file through <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a>.
</blockquote>
<p>
There's four php.ini settings he recommends checking as well as two values to change if you do have the need to upload a large import file back into a phpMyAdmin installation (ExecTimeLimit, MemoryLimit).
</p>]]></description>
      <pubDate>Tue, 02 Dec 2008 12:07:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nexen.net: Elephpants, 2008 generation]]></title>
      <guid>http://www.phpdeveloper.org/news/10103</guid>
      <link>http://www.phpdeveloper.org/news/10103</link>
      <description><![CDATA[<p>
So you've seen all of the <a href="http://flickr.com/groups/elephpants/pool/">pictures of the elePHPants</a> floating around and want to get your hands on one of your very own? Good news! <i>Damien Seguy</i> and crew have another fresh batch of huggable blue PHPness on the way and you can place your order now:
</p>
<blockquote>
If you have missed the boat of the first generation of elePHPants, now is the right time to catchup up and participate to the 2008 generation! As for the first generation, this project is open to every PHP User group and aficionados, that want to adopt elePHPants, small or big.
</blockquote>
<p>
Pricing is 4 Euros per elephant (in a 50 count box only) or 50 Euro for one of the <a href="http://flickr.com/photos/derickrethans/2340483978/in/pool-elephpants">larger elephants</a>. They're even open to having company logos ("your own brood") added to the other side of his back. You can find more details on getting your hands on one at <a href="http://www.nexen.net/articles/dossier/18339-elephpants,_2008_generation.php">this page</a> on the Nexen.net website or just head right to <a href="http://www.nexen.net/elephpant/2008.php">the order form</a> to get a little blue PHPer to call your own.
</p>]]></description>
      <pubDate>Fri, 02 May 2008 17:12:40 -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>
