PHP Classes

An other upload progress bar prob

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  An other upload progress bar prob  >  (Un) Subscribe thread alerts  
Subject:An other upload progress bar prob
Summary:An other upload progress bar prob
Messages:6
Author:Patrick Simard
Date:2008-05-07 12:44:15
Update:2008-05-08 05:43:55
 

  1. An other upload progress bar prob   Reply   Report abuse  
Picture of Patrick Simard Patrick Simard - 2008-05-07 12:44:15
You seem to have done a very good job in this class. I am slowly integrating it into my software’s :-) Thanks a lot.

I am experiencing a problem with the progress bar ... it's not showing it self. I installed the pecl progressbar module, added mod_gzip_item_exclude file test_upload_progress\.php$ to my apache httpd.conf file but not only the progress bar does not appear ... but the page times up after submission. Take a look:

distributionadp.info/admin/site/upl ...

I was wandering if it was also possible to calculate an estimated time left feature to this.

Thx in advance

  2. Re: An other upload progress bar prob   Reply   Report abuse  
Picture of Patrick Simard Patrick Simard - 2008-05-07 12:56:25 - In reply to message 1 from Patrick Simard
Oh yeah and i am using Apache 2.0 and PHP 4.4.7 and it's not a file size related issue. the php.ini file supports up to 100m upload with out any problems.

  3. Re: An other upload progress bar prob   Reply   Report abuse  
Picture of Patrick Simard Patrick Simard - 2008-05-07 13:08:52 - In reply to message 1 from Patrick Simard
Nope looks like it was worse then that ... all my server php page turned blank after adding the line in the httpd.conf file. I had to remove it to get it back working. I copied the line exactly like you said in your other thread but looks like it's nor working for my server configuration.

Any help would be appreciated
thx

  4. Re: An other upload progress bar prob   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-05-07 21:48:21 - In reply to message 1 from Patrick Simard
You are using Apache 2, so mod_gzip does not run in your Web server. You should not use any mod_gzip directives there.

If you are using PHP 4.4, you need to recompile it with the upload hooks patch. Otherwise the upload progress extension will not work.

  5. Re: An other upload progress bar prob   Reply   Report abuse  
Picture of Patrick Simard Patrick Simard - 2008-05-08 05:21:04 - In reply to message 4 from Manuel Lemos
I just downgraded my apache to 1.3. It's more recommended when using php4 anyway. I reinstalled all the added modules including the upload progress bar one and also update my httpd.conf. This time I have no time out when I open my pages ... but the progress bar is not working lol Would you be interested to take a root access at my server and correct the problem in exchange of a small amt? I am not rich but I really need this to work and I running out of time.

If you have MSN (drisate(at)hotmail(dot)com)
If you have skype (phpecono)

I am sur you can get this up and running in a matter of seconds...

  6. Re: An other upload progress bar prob   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-05-08 05:43:55 - In reply to message 5 from Patrick Simard
Sorry, I may have given the wrong impression, but your problem is not with Apache. Your problem is with PHP.

If you can run PHP 5.2 or later, it will be easier for you. If you need to use PHP 4.3 or 4.4, you need to apply a patch to PHP source code, recompile and install it. That is what I did. Read this article to learn how to do it:

phpclasses.org/blog/post/61-File-up ...

That patch adds support to the PHP upload hooks, which are built-in PHP 5.2. Once you have that enabled, you also need to install the upload progress extension. Then the form upload progress will work for you.

I do not have time now, but if you need help from somebody to setup your Web server, I may find somebody that can do it for a regular consulting fee. Just let me know if you would like me to find a consultant to help you.