PHP Classes

don't show upload prosess

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  >  How to Show Google Ma...  >  All threads  >  don't show upload prosess  >  (Un) Subscribe thread alerts  
Subject:don't show upload prosess
Summary:don't show upload prosess
Messages:19
Author:Nabi KaramAliZadeh
Date:2008-03-18 20:10:46
Update:2008-08-17 14:35:39
 
  1 - 10   11 - 19  

  11. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-25 00:14:59 - In reply to message 8 from Manuel Lemos
hello,

now,

i use this:

Apache/1.3.41 (Unix)
PHP/5.2.5
mod_gzip/1.3.26.1a
uploadprogress 0.3.0-beta enabled

and put this in .php file:
Header('X-do-not-compress-this: yes');

and put this in httpd.conf file:
mod_gzip_item_exclude rspheader "X-do-not-compress-this: yes"

this is sample:
ahwazserver.net/temp/creation_form/ ...

but don't appear upload progress bar !
please help me.
thanks

  12. Re: don't show upload prosess   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-25 01:49:46 - In reply to message 11 from Nabi KaramAliZadeh
I see the progress bar but it only appears at the end of upload. It seems that mod_gzip is still buffering the response despite it is no longer being compressed.

I think you probably need to use a request condition rule, rather than a response condition rule.

Try this:

mod_gzip_item_exclude file test_upload_progress\.php$

  13. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-26 01:22:42 - In reply to message 12 from Manuel Lemos
Ohhh, YES !
it's working good, no problem now !
thanks Manual for helping...
the best regards.

  14. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-27 09:25:45 - In reply to message 12 from Manuel Lemos
hi again,

for apache 2 with php 5.2
i put this:

---
# Enable mod_deflate
LoadModule deflate_module modules/mod_deflate.so

# Explicit Inclusion Of Files By MIME Type
AddOutputFilterByType DEFLATE text/html text/plain text/xml

# Explicit Exclusion Of Files By Extension
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

# Further Configuration Directives
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
---

and enable mod_deflate,

but don't show upload prosess.

thanks

  15. Re: don't show upload prosess   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-27 09:51:48 - In reply to message 14 from Nabi KaramAliZadeh
I do not use Apache 2.2 with mod_deflate, but as far as I know it does not require any special configuration because compressed HTML is not dechunked, so it should not be buffering the response. Your problem should be something else.

  16. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-06-10 11:13:02 - In reply to message 15 from Manuel Lemos
i upgrade php, and now don't work progress bar :-(
ahwazserver.net/temp/creation_form/ ...
plz check me and say me bug.
thanks.

  17. Re: don't show upload prosess   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-06-10 15:32:58 - In reply to message 16 from Nabi KaramAliZadeh
You need to make sure the uploadprogress extension is installed. It does not come built-in PHP 5.2 . You may need to recompile and install it.

  18. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-08-17 10:01:23 - In reply to message 17 from Manuel Lemos
i add this line in .htaccess and worked ok !

mod_gzip_on yes

you said that gzip must be disable?!!!

tnx

  19. Re: don't show upload prosess   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-08-17 14:35:39 - In reply to message 18 from Nabi KaramAliZadeh
Yes, mod_gzip must be disabled for pages that provide upload progress because mod_gzip buffers responses and you would not see the progress report coming.

But you do not have to disable mod_gzip for all pages. You can configure it to disable compression only for pages that provide upload progress.

 
  1 - 10   11 - 19