<?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>Wed, 22 May 2013 10:52:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Upload Progress Meter - Common issues and some answers]]></title>
      <guid>http://www.phpdeveloper.org/news/12241</guid>
      <link>http://www.phpdeveloper.org/news/12241</link>
      <description><![CDATA[<p>
On the Liip blog today <i>Christian Stocker</i> has posted about a <a href="http://blog.liip.ch/archive/2009/03/31/upload-progress-meter-common-issues-and-some-answers.html">few common issues</a> developers seem to have with the upload progress meter extension and a few answers to help them out.
</p>
<blockquote>
After I released <a href="http://pecl.php.net/package/uploadprogress">uploadprogress</a> 1.0.0 some days ago and finally declared it as stable, it's time to write that blogpost about some of the limitations and caveats one has to know.
</blockquote>
<p>
The post <a href="http://labs.liip.ch/uploadprogresssimple/">links to a demo</a> and answers a few different questions on issues such as:
</p>
<ul>
<li>Running it on other modules than mod_php on Apache ( like fastcgi)
<li>Checking if files are too big
<li>The position and content of UPLOAD_IDENTIFIER within the form is important
<li>Why not use $_SESSION for the info?
<li>It segfaults, when I don't include UPLOAD_IDENTIFIER
</ul>
<p>
See <a href="http://pecl.php.net/package/uploadprogress">the PECL page</a> for the extension for more information.
</p>]]></description>
      <pubDate>Tue, 31 Mar 2009 09:31:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Upload Progress Meter for Windows - The next take]]></title>
      <guid>http://www.phpdeveloper.org/news/12130</guid>
      <link>http://www.phpdeveloper.org/news/12130</link>
      <description><![CDATA[<p>
<i>Christian Stocker</i> has <A href="http://blog.liip.ch/archive/2009/03/13/upload-progress-meter-for-windows-the-next-take.html">posted about</a> "the next take" on the PHP upload progress meter extension - a new version that plays a bit nicer on Windows than before.
</p>
<blockquote>
The <a href="http://pecl.php.net/package/uploadprogress">uploadprogress</a> extension for PHP <a href="http://pecl.php.net/bugs/bug.php?id=9584">never really worked on Windows</a> and since I don't have a Windows development environment I could never do a proper analysis of the problem. Until this week, when Tomas Holusa sent me an email telling me about some VCWD_RENAME problems on Windows.
</blockquote>
<p>
<a href="http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.9.2.35.2.4&r2=1.74.2.9.2.35.2.5&pathrev=PHP_5_3">A patch</a> that was submitted a while back confirmed the issue and <a href="http://cvs.php.net/viewvc.cgi/pecl/uploadprogress/uploadprogress.c?r1=1.19&r2=1.20">a new patch</a> was written and submitted to take care of the problem. You can try out the new extension on Windows with either the <a href="http://downloads.php.net/pierre/php_uploadprogress-cvs-200903012-5.2-Win32.zip">normal Wind32 build</a> or <a href="http://downloads.php.net/pierre/php_uploadprogress-cvs-200903012-5.2-nts-Win32.zip">Win32 nts build</a>.
</p>]]></description>
      <pubDate>Fri, 13 Mar 2009 09:38:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Lessons learned from a reddit overload]]></title>
      <guid>http://www.phpdeveloper.org/news/10511</guid>
      <link>http://www.phpdeveloper.org/news/10511</link>
      <description><![CDATA[<p>
Thanks to it being posted on <a href="http://www.reddit.com/">reddit</a>, the traffic to a <a href="http://michaelkimsal.com/blog/why-do-browsers-still-not-have-file-upload-progress-meters/">certain post</a> on <i>Michael Kimsal</i>'s blog gave him a crash (literally?) course in high load management on a WordPress blog.
</p>
<blockquote>
The blog post was voted up on reddit, and the server got slammed.  So slammed, in fact, that it was unusable for a few hours while I investigated the problem.  I didn't know the post was on reddit, but I knew I was getting some traffic. 
</blockquote>
<p>
He spent some time trying to get the Apache server to finally die off and give him back his machine, at least enough to get a feel for what was going on. Part of his problem was not having APC installed like he thought and the other part - <a href="http://www.wordpress.org">WordPress</a>. While friendly on the outside, it's apparently somewhat lacking on the inside. 
</p>]]></description>
      <pubDate>Mon, 30 Jun 2008 12:04:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Why do browsers still not have file upload progress meters?]]></title>
      <guid>http://www.phpdeveloper.org/news/10490</guid>
      <link>http://www.phpdeveloper.org/news/10490</link>
      <description><![CDATA[<p>
On <a href="http://michaelkimsal.com/blog/why-do-browsers-still-not-have-file-upload-progress-meters/">his blog today</a> <i>Michael Kimsal</i> asks a question that hasn't come up much in recent months - with all of the advancements browsers are adding in, why aren't there better hooks for measuring file downloads?
</p>
<blockquote>
This current tirade stems from implementing a file upload progress meter in PHP5.  Yes, PHP5.2 has some hook, and there's a PECL extension. [...] I realize this is partially a PHP issue I'm ranting about, but it's ultimately a hacky workaround to a basic piece of functionality that browsers should support. 
</blockquote>
<p>
He <a href="http://michaelkimsal.com/blog/why-do-browsers-still-not-have-file-upload-progress-meters/">mentions</a> an example where he basically directly asked a member of the IE team about it. It wasn't greeted seriously and still hasn't managed to be included in most of the popular browsers of today.
</p>]]></description>
      <pubDate>Thu, 26 Jun 2008 08:41:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: What's new in PHP V5.2, Part 5: Tracking file upload progress]]></title>
      <guid>http://www.phpdeveloper.org/news/7871</guid>
      <link>http://www.phpdeveloper.org/news/7871</link>
      <description><![CDATA[<p>
In a continuation of their series looking at what's new in PHP5, the IBM developerWorks site has posted <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-v525/">part five</a>, a look at the handy addition of the file upload progress functionality.
</p>
<blockquote>
<p>
Given that uploading huge files can be tedious for impatient users, it is important to provide them positive feedback to keep them from giving up and going away.
</p>
<p>
Fortunately, PHP V5.2's new hooks into the file upload process allow us to show users in real time what is happening with their uploads. In this article, we will create a progress bar using PHP V5.2 for our users (see <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-v525/#download">Download</a> for source code).
</p>
</blockquote>
<p>
They <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-v525/">talk about</a> what "hooks" are to explain how things work together before getting into the setup of the sample app. They chose to go with WAMP for their examples, but it can be easily adapted to any other flavor of *AMP setup of your choosing.
</p>
<p>
They set up a default upload box inside of a normal form the user can upload a file with. The real magic happens on the backend when the "Upload" button is hit. Via a handy call to the apc_fetch function, we can determine how far along the file is in the upload. This is relayed back to the script when their "Start me up!" link is clicked and a progress bar is advanced as the file is uploaded.
</p>]]></description>
      <pubDate>Fri, 18 May 2007 09:38:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: File upload progress meter for PHP 4, at last!]]></title>
      <guid>http://www.phpdeveloper.org/news/6956</guid>
      <link>http://www.phpdeveloper.org/news/6956</link>
      <description><![CDATA[<p>
With the release of PHP 5.2 and a new feature, the file upload hooks useful for making an upload progress meter, PHP 4 users have been feeling a little left out. Well, come into the light PHP4ers - PHPClasses has just what you need - <a href="http://www.phpclasses.org/browse/file/17423.html">two</a> <a href="http://www.phpclasses.org/browse/file/17424.html">patches</a> to give you the same functionality.
</p>
<blockquote>
Since I wanted to use this upload progress meter extension under PHP 4, I had to find an alternative solution. I decided to port the patch that adds hooks to monitor upload progress to make it run under PHP 4.
</blockquote>
<p>
These two patches work for different versions:
<ul>
<li><a href="http://www.phpclasses.org/browse/file/17423.html">PHP 4.3.11</a>
<li><a href="http://www.phpclasses.org/browse/file/17424.html">PHP 4.4.4</a>
</ul>
He <a href="http://www.phpclasses.org/blog/post/61-File-upload-progress-meter-for-PHP-4-at-last.html">also links</a> to a few other resources of use to file uploaders out there:
<ul>
<li><a href="http://www.meta-language.net/forms-examples.html?example=test_upload_progress&code=1">an example</a> of a plugin using COMET to generate the progress bar
<li>the <a href="http://pecl.php.net/package/uploadprogress">upload progress meter</a> for the PHP 5 series
<li>and a <a href="http://blog.bitflux.ch/archive/2006/12/05/upload-progress-meter-for-windows.html">Windows version</a> of the same.
</ul>
</p>]]></description>
      <pubDate>Thu, 21 Dec 2006 10:46:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[JSLabs Blog:  How to create a php upload progress meter]]></title>
      <guid>http://www.phpdeveloper.org/news/6869</guid>
      <link>http://www.phpdeveloper.org/news/6869</link>
      <description><![CDATA[<p>
In a <a href="http://www.whenpenguinsattack.com/2006/12/12/how-to-create-a-php-upload-progress-meter/">new post</a> to the JSLabs blog today, there's a mini-tutorial showing how to, with the help of the new hooks in PHP 5.2, create a file upload progress meter.
</p>
<blockquote>
This progess meter is based on the yahoo user interface library and alternative php cache (APC).  You will need both of these for it to display properly.  PHP 5.2.0 or higher is also required. (I have written a previous article on alternative PHP cache <a href="http://www.whenpenguinsattack.com/2006/12/11/how-to-install-alternative-php-cache/">here</a>).
</blockquote>
<p>
He gives a brief overview of how things work (including the php.ini setting to make it happen) and has a screenshot of the resulting output. You can check out the <a href="http://progphp.com/progress.php">demo here</a> or just <a href="http://progphp.com/progress.phps">grab the source</a> and jump right in.
</p>]]></description>
      <pubDate>Tue, 12 Dec 2006 07:21:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Upload Progress Meter for Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/6836</guid>
      <link>http://www.phpdeveloper.org/news/6836</link>
      <description><![CDATA[<p>
<i>Christian Stocker</i> has an <a href="http://blog.bitflux.ch/archive/2006/12/06/upload-progress-meter-for-windows.html">update on his blog</a> today that Windows users will be happy to hear:
</p>
<blockquote>
Frank Kromann applied some patches yesterday to the PECL sources of the <a href="http://pecl.php.net/package/uploadprogress">uploadprogress</a> extension to make it compile under Windows (almost the same as by SteveH provided in a comment of <a href="http://blog.bitflux.ch/archive/2006/12/05/upload-progress-meter-finally-in-pecl.html">my post yesterday</a>). Therefore, thanks to the <a href="http://pecl4win.php.net/ext.php/php_uploadprogress.dll">pecl4win</a> site, a compiled dll is now already available. <a href="http://pecl4win.php.net/ext.php/php_uploadprogress.dll">Get it here</a> (untested by me..)
</blockquote>
<p>
He <a href="http://blog.bitflux.ch/archive/2006/12/06/upload-progress-meter-for-windows.html">also mentions</a> some documentation that was asked about concerning the package (and the patches), but notes that he "can't promise anything any time soon".
</p>]]></description>
      <pubDate>Wed, 06 Dec 2006 10:29:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Upload Progress Meter finally in PECL]]></title>
      <guid>http://www.phpdeveloper.org/news/6821</guid>
      <link>http://www.phpdeveloper.org/news/6821</link>
      <description><![CDATA[<p>
According to <a href="http://blog.bitflux.ch/archive/2006/12/05/upload-progress-meter-finally-in-pecl.html">this note</a> from <i>Christian Stocker</i> on the BitFlux blog, the upload progress meter (using the new file upload hooks introduced in recent PHP versions) has finally been included, officially, into PECL.
</p>
<blockquote>
After some tweaking, code improvements and <a href="http://blog.php-security.org/archives/58-Suhosin-caught-another-remote-code-execution-vulnerability.html">remote code execution vulnerability fixes</a>, I finally put the <a href="http://pecl.php.net/package/uploadprogress">uploadprogress extension</a> into PECL.
</blockquote>
<p>
Windows users might be out of luck for a while though, since <i>Christian</i>'s not pursuing binaries for the package. However, <a href="http://pecl.php.net/package/uploadprogress">the source</a> is there, and anyone is more than welcome to try...
</p>]]></description>
      <pubDate>Tue, 05 Dec 2006 07:09:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Upload Progress Meter extension for PHP 5.2]]></title>
      <guid>http://www.phpdeveloper.org/news/6383</guid>
      <link>http://www.phpdeveloper.org/news/6383</link>
      <description><![CDATA[<p>
On the BitFlux blog today, <i>Christian Stocker</i> <a href="http://blog.bitflux.ch/archive/2006/09/28/upload-progress-meter-extension-for-php-5-2.html">talks about the patch</a> for PHP that allows for a simple progress meter when files are uploading.
</p>
<blockquote>
<p>
Showing a real progress bar when uploading large files is an often requested (and quite informative) feature, which is not easily doable with the way the upload handling works in PHP. There is a <a href="http://pdoru.from.ro/upload-progress-meter/">patch available</a> for PHP 4.4 and 5.0, which made it nevertheless possible, but some php core files itself needed to be patched for that.
</p>
</blockquote>
<p>
He notes, however, that a new sort of patch for the same thing has just been committed to the PHP_5_2 branch, making the previous patch a thing of the past. It's completely new and you can check out the <a href="http://dl.bitflux.org/uploadprogress-snapshot.tgz">code here</a> or the svnweb <a href="https://ssl.bitflux.ch/horde/chora/misc/uploadprogress/">here</a>.
</p>]]></description>
      <pubDate>Thu, 28 Sep 2006 07:22:36 -0500</pubDate>
    </item>
  </channel>
</rss>
