So I’ve been doing some investigating and I put this bit of code:
$File = “testfile.txt”;
$Handle = fopen($File, ‘w’);
fwrite($Handle, “STAT: ” . $stat . “\n”);
fwrite($Handle, “PERMS: ” . $perms . “\n”);
fclose($Handle);
after the permissions get set for the uploaded image and the thumbnail version.
This is the output for the uploaded image:
STAT: Array
PERMS: 438
This is the output for the thumbnail image:
STAT:
PERMS: 0
Any ideas as to the discrepency?
Thanks,
Jon