Problems uploading .jpg image to folder
Posted: Thu Jun 21, 2007 8:00 am
I have a script that uploads a jpg from a form. PHP handles the form
The image is stored in a folder and I have permissions
Works great on my old computer (xp-pro) and on the apache server
Does not work in new computer / new PHP install
This is what displays on the local server / vista / IIS7
debugging info:Array ( [img1] => Array ( [name] => Desert Landscape.jpg [type] => [tmp_name] => [error] => 6 [size] => 0 ) )
This is the correct display on the Apache server
debugging info:Array ( [img1] => Array ( [name] => Autumn Leaves.jpg [type] => image/pjpeg [tmp_name] => /tmp/php6nXuLM [error] => 0 [size] => 276216 ) )
Maybe I do not have .jpg support on my latest PHP install or GD2 support is not working - or...
Any idea what the problem might be?
I have checked the php.ini and it seems all the options needed are available and unremarked
I have the mbstring before the efix in the PHP.ini file
been at this for 5 days and any help would be appreciated!!!
David
The image is stored in a folder and I have permissions
Works great on my old computer (xp-pro) and on the apache server
Does not work in new computer / new PHP install
This is what displays on the local server / vista / IIS7
debugging info:Array ( [img1] => Array ( [name] => Desert Landscape.jpg [type] => [tmp_name] => [error] => 6 [size] => 0 ) )
This is the correct display on the Apache server
debugging info:Array ( [img1] => Array ( [name] => Autumn Leaves.jpg [type] => image/pjpeg [tmp_name] => /tmp/php6nXuLM [error] => 0 [size] => 276216 ) )
Maybe I do not have .jpg support on my latest PHP install or GD2 support is not working - or...
Any idea what the problem might be?
I have checked the php.ini and it seems all the options needed are available and unremarked
I have the mbstring before the efix in the PHP.ini file
been at this for 5 days and any help would be appreciated!!!
David