I think I have tryied everything, but can't seem to find the error... Please help.
I keep getting this error:
Notice: getimagesize() [function.getimagesize]: Read error! in function.gallery.php on line 475
Here is the part of the script:
Thanks in advancePHP Code:foreach($_FILES as $k => $v){
if( !$_FILES[$k]['error'] && preg_match("#^image/#i", $_FILES[$k]['type']) && $_FILES[$k]['size'] < 100000000){
$imagename = $_FILES[$k]['name'];
$tempFile = $_FILES[$k]['tmp_name'];
$targetPath = $folder;
$targetFile = str_replace('//','/',$targetPath) . $_FILES[$k]['name'];
move_uploaded_file($tempFile,$targetFile);
$imagepath = $imagename;
$save = $targetPath."".$imagepath; //This is the new file saving
$file = $targetPath."".$imagepath; //This is the original file
list($width, $height) = getimagesize($file); // THIS IS WHERE IT GOES WRONG?!?!?
![]()





Bookmarks