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
the script works great on my old computer (xp-pro) and on the apache server
the script does not work in new computer / new PHP install / Vista OS
This is what displays from 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 from the Apache server
debugging info:
Array ( [img1] => Array ( [name] => Autumn Leaves.jpg [type] => image/pjpeg [tmp_name] => /tmp/php6nXuLM [error] => 0 [size] => 276216 ) )
I am missing file tmp name, file size, file type — only the name is in the array.
also the script throws an error 6 – tmp folder not found
I have tried various folders and the permissions is set to read write.
the php.ini —
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = c:tmp
; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
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 6 days and any help would be appreciated!!!
David