Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
uploading percentage indicator
Old 05-18-2010, 08:49 AM uploading percentage indicator
Skilled Talker

Posts: 97
Trades: 0
i am using php to upload flv files in server and it works well. a

ll that i need is to show loading indicator that shows the user the status of the uploaded file now

( like the download indicator in any program that shows for example: downloaded : 80% ).

i want to show the same idea but in uplaodng file

(uploaded : 1% , 20% ........ , 100% --> uplaod completed).

any idea??

Last edited by john_zakaria; 05-18-2010 at 08:54 AM..
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-18-2010, 08:56 AM Re: uploading percentage indicator
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
upload progress bar
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-18-2010, 08:56 AM Re: uploading percentage indicator
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
You can do it using JavaScript, example JQuery.

If my memory serves me correctly it is along the lines of using an IFrame with JQuery and you can achieve your desired result.

You wont be able to do it with PHP on its own.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 05-18-2010, 08:18 PM Re: uploading percentage indicator
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
You can either use java applets or flash
there is a free flash code called uploadify
http://www.uploadify.com/demo/
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
Reply With Quote
View Public Profile
 
Old 05-19-2010, 04:10 AM Re: uploading percentage indicator
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Since php 5.2 it is possible to track upload progress via php native mechanisms
http://php.net/manual/en/features.file-upload.php#71564
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 05-19-2010, 04:14 AM Re: uploading percentage indicator
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
Quote:
Originally Posted by mtishetsky View Post
Since php 5.2 it is possible to track upload progress via php native mechanisms
http://php.net/manual/en/features.file-upload.php#71564
ooo thanks, didnt know that existed, however it seems like a "choopy" system relying on page refreshes (since PHP isnt clientside). You would still be looking at javascript/ajax implimentation to get the desired loading bar effect.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 05-24-2010, 01:35 AM Re: uploading percentage indicator
Average Talker

Posts: 15
Name: Gordon
Trades: 0
Quote:
Originally Posted by Phunk Rabbit View Post
ooo thanks, didnt know that existed, however it seems like a "choopy" system relying on page refreshes (since PHP isnt clientside). You would still be looking at javascript/ajax implimentation to get the desired loading bar effect.
I did it this weekend, on www.PutFile2.com.

I used pecl-uploadprogress for PHP (which is very easy to install), and then javascript to update the progress bar (you don't need page reloads). I have the refresh rate set at about 2 seconds, as I don't want a million hits on the server, but you can reduce the timing to make it smooth.

hth

__________________
Gordon Page [
Please login or register to view this content. Registration is FREE
]

Please login or register to view this content. Registration is FREE

Last edited by gordonrp; 05-24-2010 at 01:36 AM.. Reason: added image of what the progress bar looks like, of course you can make it look however you want.
gordonrp is offline
Reply With Quote
View Public Profile
 
Old 05-27-2010, 04:22 PM Re: uploading percentage indicator
Average Talker

Posts: 20
Trades: 0
I've used the PECL method before it's pretty nice.. but I will say this.. It's a pain in the neck but I like that it's a PHP option in PECL and written in C++ (or C not sure).

It's pretty quick and you'll eliminate the need for the user to have flash..

Right now, Facebook and Youtube have went to Java applets.. I'm excited to see them come back haha, but that's my new "preference" on all of the sites that need it....
__________________

Please login or register to view this content. Registration is FREE
- Awesome Price, Awesome Support, Awesomely Awesome...


Please login or register to view this content. Registration is FREE
- Web Development, E-Commerce, SEO, SMM, CMS's
holmessph is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to uploading percentage indicator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39526 seconds with 12 queries