Fixed it, for some reason I guess it dont like spaces to much and also needs an @ on a few...
Dunno why it only happened with images though /shrug
PHP Code:
$filesize=@filesize($getfile);
$filenum = fopen($getfile,"rb");
$filestuff = fread($filenum,$filesize);
fclose($filenum);
Needed to be:
PHP Code:
$filesize=@filesize($filename);
$filenum=@fopen($getfile,"rb");
$filestuff=@fread($filenum,$filesize);
@fclose($filenum);