PHP Image Upload Script Needs Modifying

Hi guys, I have an image upload script written in PHP that I would like modifying. Heres a quick description of what the PHP script does:

Resizes images (in proportion)

Transfers image via FTP

Creates a random and unique filename for images

Stores filename in MySQL

It works pretty well however it does have a main problem that I'd like fixing, the problem is this:

When a gif file is uploaded, the image extension is .gif however the file type when viewing the gif image info says that the image is a JPEG. This is a concern and the main problem id like fixing.

when a png file is uploaded, the same problem occurs as above.

When a bmp file is uploaded, I get an error on upload and the image appears black on the website... again the bmp image has the same problem as the above gif and png problem, it has the .bmp file extension but says the file type is a JPEG in the image info properties.

If anyone can help me with these problems, that would be great and also, im open to other suggestions if anything else seems wrong with the script or if they know of better ways of doing things :) I can also point out what I think is causing the errors in the script, I just dont know how to fix it! :) Thankyou.

Taidot: MySQL, PHP

Näytä lisää: php mysql image bmp file upload, how to fix anything website, php image info upload script, script modifying mysql, image upload image description mysql, image upload script php, image upload script, upload im, php extension, php error fixing, modifying, image upload, image type, bmp, better properties, php script open file, needs written, upload gif, upload extension, mysql pretty

Tietoa työnantajasta:
( 20 arvostelua ) Darlington, United Kingdom

Projektin tunnus: #747121

Myönnetty käyttäjälle:


Hi, please see PMB for details

$30 USD 1 päivässä
(23 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi, please, check your PM

$30 USD 0 päivässä
(329 arvostelua)

hello sir i have experience in doing that kind of scripting.

$30 USD 3 päivässä
(96 arvostelua)

Please check PMB

$30 USD 0 päivässä
(10 arvostelua)

Contact me,i'll see what i can do

$200 USD 5 päivässä
(0 arvostelua)