PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > PHP & Ajax progress bar
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP & Ajax progress bar

Réponse
 
LinkBack Outils de la discussion
Vieux 12/03/2008, 05h24   #1
Shelley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP & Ajax progress bar

Hi all,

I'm searching some file upload progress bar code.
But no good result was found.
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)
  Réponse avec citation
Vieux 12/03/2008, 05h40   #2
Wolf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Shelley,

What code have you tried and what were your results?

What about searches on google or the archives here?

Wolf


Shelley wrote:
> Hi all,
>
> I'm searching some file upload progress bar code.
> But no good result was found.
> So is there anybody please be kind enough to show some code here?
>
> Great thanks.
>
> --
> Regard,
> Shelley (http://phparch.cn)
>


  Réponse avec citation
Vieux 12/03/2008, 05h45   #3
Wolf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

As a qualified PHP Engineer , I'm certain you have written some code
that is failing and you need a little massaging, by all means post
it and we'll gladly take a look and see if we can facilitate its use.

Wolf

Shelley wrote:
> Hi all,
>
> I'm searching some file upload progress bar code.
> But no good result was found.
> So is there anybody please be kind enough to show some code here?
>
> Great thanks.
>
> --
> Regard,
> Shelley (http://phparch.cn)
>


  Réponse avec citation
Vieux 12/03/2008, 10h28   #4
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Quoting Shelley <myphplist@gmail.com>:

> Hi all,
>
> I'm searching some file upload progress bar code.
> But no good result was found.
> So is there anybody please be kind enough to show some code here?
>
> Great thanks.
>
> --
> Regard,
> Shelley (http://phparch.cn)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


You can try searching the archives. Rasmus had an example a long time ago.
Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps
  Réponse avec citation
Vieux 12/03/2008, 10h51   #5
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] PHP & Ajax progress bar

Quoting Mr Webber <captain_webber@hotmail.com>:

> I haven't' tried this yet ... so I would appreciate your feedback.
>
> -----Original Message-----
> From: Thijs Lensselink [mailto:dev@lenss.nl]
> Sent: Wednesday, March 12, 2008 4:28 AM
> To: php-general@lists.php.net
> Subject: Re: [php] PHP & Ajax progress bar
>
> Quoting Shelley <myphplist@gmail.com>:
>
>> Hi all,
>>
>> I'm searching some file upload progress bar code.
>> But no good result was found.
>> So is there anybody please be kind enough to show some code here?
>>
>> Great thanks.
>>
>> --
>> Regard,
>> Shelley (http://phparch.cn)
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php

>
> You can try searching the archives. Rasmus had an example a long time ago.
> Although it requires APC to be installed. Maybe it's interesting.
>
> Found it:
> Example : http://progphp.com/upload.php
> Source : http://progphp.com/upload.phps
>
> --


Pls don't top post.

If you want to know if it works. Go ahead!
Copy paste the code and give it a try.

  Réponse avec citation
Vieux 12/03/2008, 11h48   #6
Shelley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Thijs Lensselink 写é“:
> Quoting Mr Webber <captain_webber@hotmail.com>:
>
>> I haven't' tried this yet ... so I would appreciate your feedback.
>>
>> -----Original Message-----
>> From: Thijs Lensselink [mailto:dev@lenss.nl]
>> Sent: Wednesday, March 12, 2008 4:28 AM
>> To: php-general@lists.php.net
>> Subject: Re: [php] PHP & Ajax progress bar
>>
>> Quoting Shelley <myphplist@gmail.com>:
>>
>>> Hi all,
>>>
>>> I'm searching some file upload progress bar code.
>>> But no good result was found.
>>> So is there anybody please be kind enough to show some code here?
>>>
>>> Great thanks.
>>>
>>> --
>>> Regard,
>>> Shelley (http://phparch.cn)
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php

>>
>> You can try searching the archives. Rasmus had an example a long time
>> ago.
>> Although it requires APC to be installed. Maybe it's interesting.
>>
>> Found it:
>> Example : http://progphp.com/upload.php
>> Source : http://progphp.com/upload.phps
>>
>> --

>
> Pls don't top post.
>
> If you want to know if it works. Go ahead!
> Copy paste the code and give it a try.
>
>

I don't think it works.

I tried.
The screen always said 0%, 0 of 0 byte until the file is uploaded.
Is that what you mean progress bar?

--
Regards,
Shelley (http://phparch.cn)
  Réponse avec citation
Vieux 12/03/2008, 12h02   #7
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Quoting Shelley <myphplist@gmail.com>:

> Thijs Lensselink 写é“:
>> Quoting Mr Webber <captain_webber@hotmail.com>:
>>
>>> I haven't' tried this yet ... so I would appreciate your feedback.
>>>
>>> -----Original Message-----
>>> From: Thijs Lensselink [mailto:dev@lenss.nl]
>>> Sent: Wednesday, March 12, 2008 4:28 AM
>>> To: php-general@lists.php.net
>>> Subject: Re: [php] PHP & Ajax progress bar
>>>
>>> Quoting Shelley <myphplist@gmail.com>:
>>>
>>>> Hi all,
>>>>
>>>> I'm searching some file upload progress bar code.
>>>> But no good result was found.
>>>> So is there anybody please be kind enough to show some code here?
>>>>
>>>> Great thanks.
>>>>
>>>> --
>>>> Regard,
>>>> Shelley (http://phparch.cn)
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>> You can try searching the archives. Rasmus had an example a long time ago.
>>> Although it requires APC to be installed. Maybe it's interesting.
>>>
>>> Found it:
>>> Example : http://progphp.com/upload.php
>>> Source : http://progphp.com/upload.phps
>>>
>>> --

>>
>> Pls don't top post.
>>
>> If you want to know if it works. Go ahead!
>> Copy paste the code and give it a try.
>>
>>

> I don't think it works.
>
> I tried.
> The screen always said 0%, 0 of 0 byte until the file is uploaded.
> Is that what you mean progress bar?
>
> --
> Regards,
> Shelley (http://phparch.cn)
>


Do you have all the yui files? and APC enabled?
I tried it some time ago and it worked. But i did have to set

apc.rfc1867 = on

in php.ini to make it work. Forgot to mention that one.



  Réponse avec citation
Vieux 12/03/2008, 16h42   #8
Philip Thompson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:

>> Thijs Lensselink 写é“:


How do you pronounce your name?

  Réponse avec citation
Vieux 12/03/2008, 16h52   #9
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Quoting Philip Thompson <philthathril@gmail.com>:

> On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:
>
>>> Thijs Lensselink 写é“:

>
> How do you pronounce your name?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


Well.. how to explain this one...

thijs : T + [ice]

That's the best i can do

  Réponse avec citation
Vieux 12/03/2008, 17h03   #10
Philip Thompson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:

> Quoting Philip Thompson <philthathril@gmail.com>:
>
>> On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:
>>
>>>> Thijs Lensselink 写é“:

>>
>> How do you pronounce your name?
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php

>
> Well.. how to explain this one...
>
> thijs : T + [ice]
>
> That's the best i can do



Which is different than the famous rapper/actor...

hijs-t : [ice] + T

Hehehe =D
  Réponse avec citation
Vieux 12/03/2008, 17h12   #11
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

On Wed, Mar 12, 2008 at 11:03 AM, Philip Thompson
<philthathril@gmail.com> wrote:
> On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:
> > Quoting Philip Thompson <philthathril@gmail.com>:
> >>
> >> How do you pronounce your name?

> >
> > Well.. how to explain this one...
> >
> > thijs : T + [ice]
> >

>
> Which is different than the famous rapper/actor...
>
> hijs-t : [ice] + T
>


HA!

--
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
  Réponse avec citation
Vieux 12/03/2008, 17h23   #12
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Quoting Daniel Brown <parasane@gmail.com>:

> On Wed, Mar 12, 2008 at 11:03 AM, Philip Thompson
> <philthathril@gmail.com> wrote:
>> On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:
>> > Quoting Philip Thompson <philthathril@gmail.com>:
>> >>
>> >> How do you pronounce your name?
>> >
>> > Well.. how to explain this one...
>> >
>> > thijs : T + [ice]
>> >

>>
>> Which is different than the famous rapper/actor...
>>
>> hijs-t : [ice] + T
>>

>
> HA!
>
> --
> </Dan>
>
> Daniel P. Brown
> Senior Unix Geek
> <? while(1) { $me = $mind--; sleep(86400); } ?>
>


Same reaction here!


  Réponse avec citation
Vieux 13/03/2008, 03h03   #13
Sn!per
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

Quoting Shelley <myphplist@gmail.com>:

> I don't think it works.
>
> I tried.
> The screen always said 0%, 0 of 0 byte until the file is uploaded.
> Is that what you mean progress bar?
>
> --
> Regards,
> Shelley (http://phparch.cn)


It work fine. And that's what we meant by progress bar.

--
Roger


---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
  Réponse avec citation
Vieux 13/03/2008, 07h47   #14
Manuel Lemos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP & Ajax progress bar

Hello,

on 03/12/2008 12:24 AM Shelley said the following:
> Hi all,
>
> I'm searching some file upload progress bar code.
> But no good result was found.
> So is there anybody please be kind enough to show some code here?


You may want to take a look at this forms generation and validation
class that comes with a plug-in to do precisely that. Check the
test_upload_progress.php example script.

http://www.phpclasses.org/formsgeneration


Here is a live example page so you can see it in action:

http://www.meta-language.net/forms-e...pload_progress


You can also watch this tutorial video to learn more about this plug-in:

http://www.phpclasses.org/browse/vid...oad-meter.html


You may also want to read this blog article about the subject:

http://www.phpclasses.org/blog/post/...4-at-last.html

--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
  Réponse avec citation
Vieux 13/03/2008, 17h09   #15
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP & Ajax progress bar

At 11:24 AM +0800 3/12/08, Shelley wrote:
>Hi all,
>
>I'm searching some file upload progress bar code.
>But no good result was found.
>So is there anybody please be kind enough to show some code here?
>
>Great thanks.
>
>--
>Regard,
>Shelley (http://phparch.cn)


Shelley:

Here's my solution:

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

However, if you want php to communicate with ajax, then that can be
done like so:

http://webbytedd.com/b/timed-php/

But, you will need to figure out how much of a file has been uploaded
at each interval and I don't know how to do that.

However, if it's a batch of files, then that certainly could be done
between each file.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h40.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,19786 seconds with 23 queries