Page 1 of 1

Uploading Image in PHP

Posted: Fri Oct 17, 2008 7:05 pm
by youropensource
I need to display the progress bar when uploading image without page reloading in PHP.

Can you please give me the idea for that ?

Re: Uploading Image in PHP

Posted: Sat Oct 18, 2008 6:11 am
by jaoudestudios
Look at JQuery with PHP

Re: Uploading Image in PHP

Posted: Sat Oct 18, 2008 6:23 am
by aceconcepts

Re: Uploading Image in PHP

Posted: Wed Oct 22, 2008 2:03 pm
by youropensource
aceconcepts wrote:Here's one example: http://www.dynamicdrive.com/dynamicinde ... essbar.htm
thanks ! also need to show the image size, etc., without using CGI script. only use JS and PHP scripts , how can I do it ?

Re: Uploading Image in PHP

Posted: Wed Oct 22, 2008 2:05 pm
by Syntac
getimagesize() should do the trick.

Re: Uploading Image in PHP

Posted: Wed Oct 22, 2008 6:03 pm
by youropensource
Syntac wrote:getimagesize() should do the trick.
hmm... I want to get the image size when click the upload button, without page re-loading.
give the example code that's better for me ??

Re: Uploading Image in PHP

Posted: Wed Oct 22, 2008 6:16 pm
by Syntac
Just do an Ajax request to a PHP script that outputs the size of the image.

[EDIT] Oh wait... Is this happening before or after the file is uploaded?

Re: Uploading Image in PHP

Posted: Thu Oct 23, 2008 12:20 pm
by youropensource
Syntac wrote:Just do an Ajax request to a PHP script that outputs the size of the image.

[EDIT] Oh wait... Is this happening before or after the file is uploaded?
Get the image size before uploading image by using AJAX ?

Re: Uploading Image in PHP

Posted: Thu Oct 23, 2008 3:07 pm
by Syntac
Ohhhh... I thought you wanted to get the size after it was uploaded. Never mind then.