Results 1 to 14 of 14
Thread: Php progress bar
-
06-06-2005, 02:03 AM #1Web Hosting Guru
- Join Date
- Oct 2002
- Posts
- 277
Php progress bar
Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.
I stumbled upon this:
http://hotscripts.com/Detailed/25027.html
But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?
-
06-06-2005, 02:05 AM #2Web Hosting Master
- Join Date
- Jul 2003
- Location
- Kuwait
- Posts
- 5,104
Try HTML_Progress over at PEAR.
-
06-06-2005, 02:36 AM #3Disabled
- Join Date
- Jun 2005
- Posts
- 4
I thought smarty had a way of doing progress bars as well?
-
06-06-2005, 04:08 AM #4WHT Addict
- Join Date
- Jun 2004
- Posts
- 112
What about the XMLHTTP Request Object?
...it is client side technology though :/
-
06-06-2005, 07:41 AM #5Hail Eris !
- Join Date
- Oct 2002
- Location
- Canada
- Posts
- 3,103
Re: Php progress bar
Originally posted by yegorpb
Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.
I stumbled upon this:
http://hotscripts.com/Detailed/25027.html
But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?
Mega Upload is just a proof of concept and shows the best way to do upload progress bar with PHP. It does not have to be bulky as it seems, you could rewrite some of the perl code to PHP (except the part that receives the file) and you could open it in inline frame rather then popup if you really want to.
-
06-06-2005, 07:53 AM #6Web Hosting Guru
- Join Date
- Oct 2002
- Posts
- 277
The thing about that script, is that it only uploads to the server its hosted on. MY uploader uploads files to another server, which makes things very difficult.
-
06-06-2005, 10:19 AM #7Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
use javascript then - it is not a real progress bar. just some bar indicating it's still sending your file. There is no way to have a real proress bar if you want to upload to another server where the script is on other server.
-
06-06-2005, 03:46 PM #8Web Hosting Guru
- Join Date
- Oct 2002
- Posts
- 277
Thats what I was thinking.
-
06-07-2005, 07:08 AM #9WHT Addict
- Join Date
- Jun 2004
- Posts
- 112
Once again, won't the XMLHTTP Request Object, more or less, sort this problem out for you?
-
06-07-2005, 09:08 AM #10Web Hosting Guru
- Join Date
- Oct 2002
- Posts
- 277
I don't believe im familiar with that...
-
06-08-2005, 02:31 PM #11Newbie
- Join Date
- Jun 2005
- Posts
- 16
Originally posted by yegorpb
I don't believe im familiar with that...
Do a google search for "ajax tutorial xml"
And click on link 2B. (XML.com: Very Dynamic Web Interfaces)
-
06-09-2005, 03:31 PM #12WHT Addict
- Join Date
- Jun 2004
- Posts
- 112
A google search would be where I would get my links from but here's a particularly favourite link of mine:
http://www.fiftyfoureleven.com/resou...quest/examples
-
06-10-2005, 07:11 AM #13Web Hosting Guru
- Join Date
- May 2004
- Posts
- 305
If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark
-
06-11-2005, 11:50 AM #14WHT Addict
- Join Date
- Jun 2004
- Posts
- 112
Originally posted by flush()
If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark
http://www.crockford.com/JSON/index.html