Uploading Image in PHP
Moderator: General Moderators
-
youropensource
- Forum Commoner
- Posts: 26
- Joined: Tue Aug 05, 2008 11:42 am
Uploading Image in PHP
I need to display the progress bar when uploading image without page reloading in PHP.
Can you please give me the idea for that ?
Can you please give me the idea for that ?
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Uploading Image in PHP
Look at JQuery with PHP
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Uploading Image in PHP
Here's one example: http://www.dynamicdrive.com/dynamicinde ... essbar.htm
-
youropensource
- Forum Commoner
- Posts: 26
- Joined: Tue Aug 05, 2008 11:42 am
Re: Uploading Image in PHP
thanks ! also need to show the image size, etc., without using CGI script. only use JS and PHP scripts , how can I do it ?aceconcepts wrote:Here's one example: http://www.dynamicdrive.com/dynamicinde ... essbar.htm
Re: Uploading Image in PHP
getimagesize() should do the trick.
-
youropensource
- Forum Commoner
- Posts: 26
- Joined: Tue Aug 05, 2008 11:42 am
Re: Uploading Image in PHP
hmm... I want to get the image size when click the upload button, without page re-loading.Syntac wrote:getimagesize() should do the trick.
give the example code that's better for me ??
Re: Uploading Image in PHP
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?
[EDIT] Oh wait... Is this happening before or after the file is uploaded?
-
youropensource
- Forum Commoner
- Posts: 26
- Joined: Tue Aug 05, 2008 11:42 am
Re: Uploading Image in PHP
Get the image size before uploading image by using AJAX ?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?
Re: Uploading Image in PHP
Ohhhh... I thought you wanted to get the size after it was uploaded. Never mind then.