RE: [PHP] Re: progress in PHP

2003-12-23 Thread Steve Murphy
Actually it is very possible with PHP through the use of temporary files, which is how 
this works. I have only tested the meter with IE and Mozilla (Firebird) on Windows 
with no problems. I will test on the Mac side but because its PHP performing the 
function, browsers should not matter. 

I have also read that an upload meter function was to be added to PHP 5 but was then 
dropped, I would love it if a PHP developer could offer some insight to these rumors. 
I know this is not the correct mailing list but maybe someone knows something. 

I've also added one more download on the site which gives an example php.ini file. 
I've tested the meter with a 160MB file on 128MB RAM 500Mhz K6 system. The download 
also includes sample HTML code. I'm working on adding CSS to customize the look a 
little more. 

Hope this will answer some questions.

Steve 

-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 4:44 PM
To: [EMAIL PROTECTED]; David T-G
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: progress in PHP


Steve Murphy mailto:[EMAIL PROTECTED]
on Monday, December 22, 2003 1:03 PM said:

 Well its actually a pure PHP upload meter it just uses JS to open the
 window. You could make PHP open the window as well with a little
 tweaking.

Unless I'm missing something here this is incorrect. PHP does not bother
the client side except to send data, i.e. html/javascript/etc.

On another note:

A possible solution might be to load the popup page in an iframe instead
of popping a new window. afaik you can't open a window with plain html
without a manual click?



chris.


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Raditha Dissanayake
Join the 11,000 people who use megaupload progress bar (with a little 
help from perl)
http://www.sourceforge.net/projects/megaupload/

Steve Murphy wrote:

Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little tweaking.

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:16 PM
To: [EMAIL PROTECTED]
Cc: Steve Murphy
Subject: Re: [PHP] Re: progress in php
Steve --

...and then Steve Murphy said...
% 
% David,
% A window will popup with the progress meter. Obviously don't block popups and try using a larger file if you have a high speed line, it takes a second for the meter to start and if the upload is done it won't popup properly.

Ah.  Since I don't use javascript I probably won't get a lot out of it :-)

Darn; I was hoping for something non-JS.  I guess I'll stick with my
browser status window.
% 
% Steve

Thanks  HAND  Happy Holidays

:-D
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Ed Curtis

 Join the 11,000 people who use megaupload progress bar (with a little
 help from perl)
 http://www.sourceforge.net/projects/megaupload/

 I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.

Ed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: progress in PHP

2003-12-23 Thread James Kaufman
On Tue, Dec 23, 2003 at 11:46:50AM -0500, Ed Curtis wrote:
 
  Join the 11,000 people who use megaupload progress bar (with a little
  help from perl)
  http://www.sourceforge.net/projects/megaupload/
 
  I tried. It wasn't worth all the perl mods I would to have had to
 install to make it work.
 
 Ed
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
php approach to displaying a progress bar. I haven't used it, but the demos
look good.

-- 
Jim Kaufman
Linux Evangelist
public key 0x6D802619
http://www.linuxforbusiness.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello,

On 12/23/2003 03:31 PM, James Kaufman wrote:
Join the 11,000 people who use megaupload progress bar (with a little
help from perl)
http://www.sourceforge.net/projects/megaupload/
I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.


Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
php approach to displaying a progress bar. I haven't used it, but the demos
look good.
This a different thing. This is meant to track progress of server side 
tasks. File uploading is a client side task.

Unfortunately, AFAIK there is no way to handle streams of HTTP requests. 
Therefore, there is no way to handle upload progress with a PHP only 
solution.

The Raditha megaupload solution is based on a combination of Perl with 
PHP. It is probably the solution that uses more PHP but the hard work is 
done using Perl.

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: progress in PHP

2003-12-23 Thread Larry Brown
How does perl show progress of the upload if it is a server side scripting
language and php can't do it because it is server side?

-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: progress in PHP


Hello,

On 12/23/2003 03:31 PM, James Kaufman wrote:
Join the 11,000 people who use megaupload progress bar (with a little
help from perl)
http://www.sourceforge.net/projects/megaupload/

 I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.


 Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
 php approach to displaying a progress bar. I haven't used it, but the
demos
 look good.

This a different thing. This is meant to track progress of server side
tasks. File uploading is a client side task.

Unfortunately, AFAIK there is no way to handle streams of HTTP requests.
Therefore, there is no way to handle upload progress with a PHP only
solution.

The Raditha megaupload solution is based on a combination of Perl with
PHP. It is probably the solution that uses more PHP but the hard work is
done using Perl.

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: progress in PHP

2003-12-23 Thread David T-G
Raditha, et al --

...and then Raditha Dissanayake said...
% 
% Join the 11,000 people who use megaupload progress bar (with a little 
% help from perl)
% http://www.sourceforge.net/projects/megaupload/

Sounds nice.

Does it require JS in the browser?


TIA  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello,

On 12/23/2003 03:56 PM, Larry Brown wrote:
How does perl show progress of the upload if it is a server side scripting
language and php can't do it because it is server side?
Because PHP does not provide support to handle the raw HTTP request. By 
the time that PHP scripts starts executing, PHP already processed the 
uploaded copying the incoming data to a temporary file. OTOH, Perl 
provides support to handle the incoming HTTP request as it happens, not 
after it is done.


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: progress in PHP
Hello,

On 12/23/2003 03:31 PM, James Kaufman wrote:

Join the 11,000 people who use megaupload progress bar (with a little
help from perl)
http://www.sourceforge.net/projects/megaupload/
I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.


Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
php approach to displaying a progress bar. I haven't used it, but the
demos

look good.


This a different thing. This is meant to track progress of server side
tasks. File uploading is a client side task.
Unfortunately, AFAIK there is no way to handle streams of HTTP requests.
Therefore, there is no way to handle upload progress with a PHP only
solution.
The Raditha megaupload solution is based on a combination of Perl with
PHP. It is probably the solution that uses more PHP but the hard work is
done using Perl.


--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Raditha Dissanayake
Hi

To Manuel: You have answered the questions better than i could have :-) 
thanx. Yes perl is used because it gives access to raw post data.

To Ed: If you are on a standard rpm distro all the modules are probably 
there already.  and thus megaupload becomes plug and play.

To David: It does use a javascript to make a popup that's all. If you 
eliminate the popup and show the progress bar in a frame you don't need 
any javascript at all

To Everyone: Enjoy your christmas.

best regards
raditha


Manuel Lemos wrote:

Hello,

On 12/23/2003 03:56 PM, Larry Brown wrote:

How does perl show progress of the upload if it is a server side 
scripting
language and php can't do it because it is server side?


Because PHP does not provide support to handle the raw HTTP request. 
By the time that PHP scripts starts executing, PHP already processed 
the uploaded copying the incoming data to a temporary file. OTOH, Perl 
provides support to handle the incoming HTTP request as it happens, 
not after it is done.


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: progress in PHP
Hello,

On 12/23/2003 03:31 PM, James Kaufman wrote:

Join the 11,000 people who use megaupload progress bar (with a little
help from perl)
http://www.sourceforge.net/projects/megaupload/


I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.


Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
php approach to displaying a progress bar. I haven't used it, but the


demos

look good.


This a different thing. This is meant to track progress of server side
tasks. File uploading is a client side task.
Unfortunately, AFAIK there is no way to handle streams of HTTP requests.
Therefore, there is no way to handle upload progress with a PHP only
solution.
The Raditha megaupload solution is based on a combination of Perl with
PHP. It is probably the solution that uses more PHP but the hard work is
done using Perl.





--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello,

On 12/23/2003 03:56 PM, Larry Brown wrote:
How does perl show progress of the upload if it is a server side scripting
language and php can't do it because it is server side?
The problem is not showing progress but rather tracking progress.

What you seem to not be understanding is that PHP handles uploads 
internally. So, by the time a PHP script that gets the submitted upload 
form starts running, the upload was already ended and the uploaded files 
were copied to some temporary files.

PHP itself does not give you a chance to track the progress of the 
upload because that is something handled at the HTTP request level.

The Perl solution is based on a script that handles and tracks the 
upload and another that shows the progress. That is why you need to show 
progress in a popup or a separate frame.


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: progress in PHP
Hello,

On 12/23/2003 03:31 PM, James Kaufman wrote:

Join the 11,000 people who use megaupload progress bar (with a little
help from perl)
http://www.sourceforge.net/projects/megaupload/
I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.


Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
php approach to displaying a progress bar. I haven't used it, but the
demos

look good.


This a different thing. This is meant to track progress of server side
tasks. File uploading is a client side task.
Unfortunately, AFAIK there is no way to handle streams of HTTP requests.
Therefore, there is no way to handle upload progress with a PHP only
solution.
The Raditha megaupload solution is based on a combination of Perl with
PHP. It is probably the solution that uses more PHP but the hard work is
done using Perl.


--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Jeremy Johnstone
FWIW, here is a link to a PHP extension which enables the ability to
track the progress of a PHP upload. I did not write the extension, so if
it breaks something I am not responsible. It was previously discussed on
the php-dev mailing list ([EMAIL PROTECTED]) a month or two ago,
but it was never decided if it would be officially added into PHP.

http://pdoru.from.ro/

-Jeremy

On Tue, 2003-12-23 at 23:15, Manuel Lemos wrote:

 Hello,
 
 On 12/23/2003 03:56 PM, Larry Brown wrote:
  How does perl show progress of the upload if it is a server side scripting
  language and php can't do it because it is server side?
 
 The problem is not showing progress but rather tracking progress.
 
 What you seem to not be understanding is that PHP handles uploads 
 internally. So, by the time a PHP script that gets the submitted upload 
 form starts running, the upload was already ended and the uploaded files 
 were copied to some temporary files.
 
 PHP itself does not give you a chance to track the progress of the 
 upload because that is something handled at the HTTP request level.
 
 The Perl solution is based on a script that handles and tracks the 
 upload and another that shows the progress. That is why you need to show 
 progress in a popup or a separate frame.
 
 
  -Original Message-
  From: Manuel Lemos [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 23, 2003 12:46 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] Re: progress in PHP
  
  
  Hello,
  
  On 12/23/2003 03:31 PM, James Kaufman wrote:
  
 Join the 11,000 people who use megaupload progress bar (with a little
 help from perl)
 http://www.sourceforge.net/projects/megaupload/
 
 I tried. It wasn't worth all the perl mods I would to have had to
 install to make it work.
 
 
 Check out http://pear.laurent-laville.org/HTML_Progress/. It is a pure
 php approach to displaying a progress bar. I haven't used it, but the
  
  demos
  
 look good.
  
  
  This a different thing. This is meant to track progress of server side
  tasks. File uploading is a client side task.
  
  Unfortunately, AFAIK there is no way to handle streams of HTTP requests.
  Therefore, there is no way to handle upload progress with a PHP only
  solution.
  
  The Raditha megaupload solution is based on a combination of Perl with
  PHP. It is probably the solution that uses more PHP but the hard work is
  done using Perl.
 
 
 -- 
 
 Regards,
 Manuel Lemos
 
 Free ready to use OOP components written in PHP
 http://www.phpclasses.org/


Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello,

On 12/24/2003 03:47 AM, Jeremy Johnstone wrote:
FWIW, here is a link to a PHP extension which enables the ability to
track the progress of a PHP upload. I did not write the extension, so if
it breaks something I am not responsible. It was previously discussed on
the php-dev mailing list ([EMAIL PROTECTED]) a month or two ago,
but it was never decided if it would be officially added into PHP.
http://pdoru.from.ro/
This is not really an extension but rather a patch to change PHP 
behaviour in order to store upload progress in files that can be 
examined by another process.

Apparently, nobody with enough karma seemed interested to commit the 
patch. It probably needs further checking to ensure that it is safe to 
execute, especially in shared environments where different hosting 
clients may be using the same Web server.

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: progress in php (was Re: [PHP] Working pop-up progress window)

2003-12-22 Thread David T-G
Steve, et al --

...and then Steve Murphy said...
% 
%  Every time I see someone ask about an upload meter a hardcore programmer writes 
back saying no one ever asks for it so why should anyone work on one? I have a demo up 
of what you might be looking for, check it out here:

Heh :-)  I always ask what's wrong with progress bar in your browser?


% 
% http://www.pfohlsolutions.com/projects/upload/

That didn't keep me from trying this, though; it would be interesting.

Unfortunately I tried the demo and uploaded a 466k zip file and got
nothing until I then got the File Upload Complete result page.  Um,
what is it supposed to do?


TIA  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] Re: progress in php (was Re: [PHP] Working pop-up progress window)

2003-12-22 Thread Steve Murphy
David,
A window will popup with the progress meter. Obviously don't block popups and try 
using a larger file if you have a high speed line, it takes a second for the meter to 
start and if the upload is done it won't popup properly.

Steve

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 2:20 PM
To: PHP General list
Cc: Steve Murphy
Subject: [PHP] Re: progress in php (was Re: [PHP] Working pop-up
progress window)


Steve, et al --

...and then Steve Murphy said...
% 
%  Every time I see someone ask about an upload meter a hardcore programmer writes 
back saying no one ever asks for it so why should anyone work on one? I have a demo up 
of what you might be looking for, check it out here:

Heh :-)  I always ask what's wrong with progress bar in your browser?


% 
% http://www.pfohlsolutions.com/projects/upload/

That didn't keep me from trying this, though; it would be interesting.

Unfortunately I tried the demo and uploaded a 466k zip file and got
nothing until I then got the File Upload Complete result page.  Um,
what is it supposed to do?


TIA  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



Re: [PHP] Re: progress in php

2003-12-22 Thread David T-G
Steve --

...and then Steve Murphy said...
% 
% David,
% A window will popup with the progress meter. Obviously don't block popups and try 
using a larger file if you have a high speed line, it takes a second for the meter to 
start and if the upload is done it won't popup properly.

Ah.  Since I don't use javascript I probably won't get a lot out of it :-)

Darn; I was hoping for something non-JS.  I guess I'll stick with my
browser status window.


% 
% Steve


Thanks  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] Re: progress in PHP

2003-12-22 Thread Steve Murphy
Well its actually a pure PHP upload meter it just uses JS to open the window. You 
could make PHP open the window as well with a little tweaking.

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:16 PM
To: [EMAIL PROTECTED]
Cc: Steve Murphy
Subject: Re: [PHP] Re: progress in php


Steve --

...and then Steve Murphy said...
% 
% David,
% A window will popup with the progress meter. Obviously don't block popups and try 
using a larger file if you have a high speed line, it takes a second for the meter to 
start and if the upload is done it won't popup properly.

Ah.  Since I don't use javascript I probably won't get a lot out of it :-)

Darn; I was hoping for something non-JS.  I guess I'll stick with my
browser status window.


% 
% Steve


Thanks  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



Re: [PHP] Re: progress in PHP

2003-12-22 Thread David T-G
Steve, et al --

...and then Steve Murphy said...
% 
% Well its actually a pure PHP upload meter it just uses JS to open the window. You 
could make PHP open the window as well with a little tweaking.

Now that might interest me.  So what has been added to the PHP codebase
that makes this work?  And what tweaking would I need to do?  [Can't I
just have it display in the current window?  Why bother with a popup?]


Thanks  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] Re: progress in PHP

2003-12-22 Thread Chris W. Parker
Steve Murphy mailto:[EMAIL PROTECTED]
on Monday, December 22, 2003 1:03 PM said:

 Well its actually a pure PHP upload meter it just uses JS to open the
 window. You could make PHP open the window as well with a little
 tweaking.

Unless I'm missing something here this is incorrect. PHP does not bother
the client side except to send data, i.e. html/javascript/etc.

On another note:

A possible solution might be to load the popup page in an iframe instead
of popping a new window. afaik you can't open a window with plain html
without a manual click?



chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: progress in PHP

2003-12-22 Thread Ed Curtis


 Now that might interest me.  So what has been added to the PHP codebase
 that makes this work?  And what tweaking would I need to do?  [Can't I
 just have it display in the current window?  Why bother with a popup?]

From rumors I've heard on the list a future version of PHP may have a
progress bar function built in. Don't know if it's true or not but it
would be nice.

Ed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php