Re: [PHP] Progressbar

2009-06-24 Thread Paul M Foster
On Wed, Jun 24, 2009 at 10:24:21AM -0400, tedd wrote:

> At 7:55 AM +0200 6/24/09, Teun Lassche wrote:
>> I'm making an upload script with PHP, is there a way I can show a
>> progressbar while uploading?
>>
>> --
>> Teun Lassche
>
> It's not a progress bar, but it's a heck of a lot simpler:
>
> http://webbytedd.com/bb/wait/
>
> The biggest problem in uploading a file is figuring out how large it
> is. You can't find that out in php and Javascript is limited in what
> information it can access. I found the problem more trouble than it
> was worth to fix. Besides, what does the user need to see while an
> operation is underway?

I like the last one (#39). Perfect for a "progress bar". ;-}

Paul

-- 
Paul M. Foster

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



Re: [PHP] Progressbar

2009-06-24 Thread tedd

At 7:55 AM +0200 6/24/09, Teun Lassche wrote:

I'm making an upload script with PHP, is there a way I can show a
progressbar while uploading?

--
Teun Lassche


It's not a progress bar, but it's a heck of a lot simpler:

http://webbytedd.com/bb/wait/

The biggest problem in uploading a file is figuring out how large it 
is. You can't find that out in php and Javascript is limited in what 
information it can access. I found the problem more trouble than it 
was worth to fix. Besides, what does the user need to see while an 
operation is underway?


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Progressbar

2009-06-24 Thread Michael A. Peters

Michael A. Peters wrote:

Morris wrote:
Assumed you are using form uploading, could redirect to the page 
itself and play a Flash while uploading.

I think this is the simplest way other than putting in mass codes


I open up a small window via javascript that then uses javascript and 
css to make a progress bar.


I'll share the code if anyone wants it, though it probably needs some 
tweaking as I don't think it validates. It works though.


http://www.clfsrpm.net/excode/uploadprogress.phps

and

http://www.clfsrpm.net/excode/uploadiframe.phps

in the form, BEFORE the file inputs, a hidden input -

$upid = md5(microtime() . rand());

value="" />


Then when submit is clicked, it open a new window with the src

uploadprogress.php?ID=

for rpm linux users, a src.rpm for uploadprogress is here:

http://www.clfsrpm.net/php/

1.0.1 is now out, but I haven't updated to it yet.

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



Re: [PHP] Progressbar

2009-06-24 Thread kranthi
you can give this a try http://www.uploadify.com/ a jquery plugin.


Re: [PHP] Progressbar

2009-06-24 Thread Teun Lassche
Thanks to you all guys, I'll try to get it working!

On Wed, Jun 24, 2009 at 12:24, Michael A. Peters  wrote:

> Morris wrote:
>
>> Assumed you are using form uploading, could redirect to the page itself
>> and play a Flash while uploading.
>> I think this is the simplest way other than putting in mass codes
>>
>
> I open up a small window via javascript that then uses javascript and css
> to make a progress bar.
>
> I'll share the code if anyone wants it, though it probably needs some
> tweaking as I don't think it validates. It works though.
>
>
>> M
>>
>> 2009/6/24 Michael A. Peters mailto:mpet...@mac.com>>
>>
>>
>>Teun Lassche wrote:
>>
>>I'm making an upload script with PHP, is there a way I can show a
>>progressbar while uploading?
>>
>>
>>Yes.
>>Assuming you are using php 5.2.x you can use the PECL extension
>>uploadprogress.
>>
>>http://pecl.php.net/package/uploadprogress/
>>
>>I am successfully using it with php 5.2.9 on i386 and x86_64
>>
>>--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
>
>


-- 
Teun Lassche
Laurence J. 
Peter
- "If two wrongs don't make a right, try three."


Re: [PHP] Progressbar

2009-06-24 Thread Michael A. Peters

Morris wrote:
Assumed you are using form uploading, could redirect to the page itself 
and play a Flash while uploading. 


I think this is the simplest way other than putting in mass codes


I open up a small window via javascript that then uses javascript and 
css to make a progress bar.


I'll share the code if anyone wants it, though it probably needs some 
tweaking as I don't think it validates. It works though.




M

2009/6/24 Michael A. Peters mailto:mpet...@mac.com>>

Teun Lassche wrote:

I'm making an upload script with PHP, is there a way I can show a
progressbar while uploading?


Yes.
Assuming you are using php 5.2.x you can use the PECL extension
uploadprogress.

http://pecl.php.net/package/uploadprogress/

I am successfully using it with php 5.2.9 on i386 and x86_64

-- 
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] Progressbar

2009-06-24 Thread Michael A. Peters

Teun Lassche wrote:

I'm making an upload script with PHP, is there a way I can show a
progressbar while uploading?



Yes.
Assuming you are using php 5.2.x you can use the PECL extension 
uploadprogress.


http://pecl.php.net/package/uploadprogress/

I am successfully using it with php 5.2.9 on i386 and x86_64

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



Re: [PHP] Progressbar

2009-06-24 Thread Nitsan Bin-Nun
You can use either perl uploading with ajax or flash uploader.

For the perl - google 'uber uploader'
For the flash - google 'flash uploader site:de' and get into the first it
should pop up something with fancy I think..

Good luck mate!

On Wed, Jun 24, 2009 at 8:20 AM, Tom Sparks wrote:

>
> have you looked at http://postlet.com/ ?
>
> tom_a_sparks
>
> Please avoid sending me Word or PowerPoint attachments.
> but instead use OpenDocument File Formats or
> use OpenOffice
> http://en.wikipedia.org/wiki/OpenDocument
> http://en.wikipedia.org/wiki/OpenOffice.org
> http://www.gnu.org/philosophy/no-word-attachments.html
>
>
> --- On Wed, 24/6/09, Teun Lassche  wrote:
>
> > From: Teun Lassche 
> > Subject: [PHP] Progressbar
> > To: php-general@lists.php.net
> > Received: Wednesday, 24 June, 2009, 3:55 PM
> > I'm making an upload script with PHP,
> > is there a way I can show a
> > progressbar while uploading?
> >
> > --
> > Teun Lassche
> > Bill Cosby <http://www.brainyquote.com/quotes/authors/b/bill_cosby.html
> >
> > -
> > "A word to the wise ain't necessary - it's the stupid ones
> > that need the
> > advice."
> >
>
>
>   Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
> Show me how: http://au.mobile.yahoo.com/mail
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Progressbar

2009-06-23 Thread Tom Sparks

have you looked at http://postlet.com/ ?

tom_a_sparks

Please avoid sending me Word or PowerPoint attachments.
but instead use OpenDocument File Formats or 
use OpenOffice
http://en.wikipedia.org/wiki/OpenDocument
http://en.wikipedia.org/wiki/OpenOffice.org
http://www.gnu.org/philosophy/no-word-attachments.html


--- On Wed, 24/6/09, Teun Lassche  wrote:

> From: Teun Lassche 
> Subject: [PHP] Progressbar
> To: php-general@lists.php.net
> Received: Wednesday, 24 June, 2009, 3:55 PM
> I'm making an upload script with PHP,
> is there a way I can show a
> progressbar while uploading?
> 
> -- 
> Teun Lassche
> Bill Cosby <http://www.brainyquote.com/quotes/authors/b/bill_cosby.html> 
> -
> "A word to the wise ain't necessary - it's the stupid ones
> that need the
> advice."
> 


  Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
Show me how: http://au.mobile.yahoo.com/mail

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



[PHP] Progressbar

2009-06-23 Thread Teun Lassche
I'm making an upload script with PHP, is there a way I can show a
progressbar while uploading?

-- 
Teun Lassche
Bill Cosby   -
"A word to the wise ain't necessary - it's the stupid ones that need the
advice."