Code: Select all
if (file_exists($piclocation)) {
$sizes = getimagesize($piclocation);
}
file_exists() only gives a error when there are invalid characters in it's file (i.e. : ; ' etc.) and should give FALSE if the file doesn't exists.
* the problem should be fixed now. *
EDIT: New bug found, can't download any files when logged in.