Upload Progress Meter for Windows - The next take
The uploadprogress extension for PHP never really worked on Windows 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. I digged a little bit deeper and found this patch commited by Pierre 10 months ago to the PHP 5.3 branch. This confirmed the problem that if the target file already exists, VCWD_RENAME fails on Windows (but works on unixy systems). Writing a patch for that problem was then easy and according to Tomas, the extension finally works on Windows.
If you want to try it out, Pierre was so kind to compile the latest CVS snapshots for PHP 5.2: php_uploadprogress-1.0.0-5.2-Win32-VC6-x86.zip or php_uploadprogress-1.0.0-5.2-nts-Win32-VC6-x86.zip (or search for it at http://downloads.php.net/pierre/). More feedback of running this on Windows would be appreciated, then I can finally release uploadprogress 1.0.0 and mark it as "stable" :)
Btw, I still owe you a "Caveats with Upload Progress Meter" for the most common problems with the extensions. I didn't forget that and can hopefully post it soon.
Update: Fixed the link to point to the 1.0.0 DLLs
Comments
Interested in trying this out but the links to the zip files are broken....
Still not working for me.
Windows Server 2003
PHP 5.2.8 / Uploadprogress 1.0.0
Apache 2.2.11
me too :(
i'm on windows with appserv and my phpinfo says my extensions directory is C:AppServphp5ext i put the dll there and it's not working as well as the ffmpeg dll after i've done all the settings and restarted few times...
i'm gona restart my whole laptop and see if it works
Thanks Christian. It works for me:)
I am Running Vista SP2, Apache/2.2.11 (Win32) PHP/5.2.8, Drupal 6.12.
Regards
Digby
As soon as Pierre has the time to compile the extension for 5.3, it will be available here http://downloads.php.net/pierre/
Willie: Theoretically it could also work on IIS, but I didn't here from anyone trying that.
I run Apache 2.2.6 and php 5.2.5 on Windows using WAMP.
When i restart my web server, the php_ error.log file contains:
PHP Warning: PHP Startup: uploadprogress: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
So it seems to be related to thread-safety=0
Yes of course nts for non-thread-safe and then... just above there was the thread-safe version... on Pierre's link The module is loaded properly as expected
Thanks I will test it right away!
still returns null. no info about the progress.
Is there a prefix to the key when calling uploadprogress_get_info like
uploadprogress_get_info('upt_' . $key);
No offense, but apc, on the other hand, is working. It is disabled when doing test with uploadprogress.
Thanks
Hi,
I am trying this extension on wapm2.0.f(php 5.2.8, Apache 2.2.11) but I couldn't make it wotk. I have added php_uploadprogress.dll in extension folder and I can view information about it in phpinfo(); but still it is not workinc. I have also checked php_error log but I couldn't find any informaation. Can anybody help me to figure out the problem.
I have the same problem, sometimes it returns null, otherwise "Failed to load source for: ">http://localhost..." :(
I've got this working with
Windows XP
PHP5.2.11
Apache 2.0.63
you need to add this to the PHP.INI
uploadprogress.file.contents_template = c:/temp/upload_contents_%s
uploadprogress.file.filename_template = c:/temp/upt_%s.txt
default is for a unix machine /tmp/
add a comment
Your email adress will never be published.
Comment spam will be deleted!
