billhobbs;10987033 wrote:
I didn't get an error but the message was chmodding:
Did you not change that part of the original code but just went along and used the code I posted as completely standalone?
That is, the script you should execute should obviously look like this
$path="userphotos";
$dh = opendir($path);
while ($temp = readdir($dh))
{
if ($temp != '.' && $temp != '..' && $temp != '.htaccess')
{
echo 'chmodding: ' . $temp . PHP_EOL;
# chmod($temp,0755);
}
}
That should definitely NOT produce the output you posted, at least not unless you have a file named as an empty string. That's why I'm guessing that you didn't try more than the exact code snippet I posted rather than use it with the stuff it needs to work like it should, which on the other hand WOULD produce an error message for $temp being undefined.
billhobbs;10987033 wrote:
None of the files were changed in the userphotos directory
No, of course not. That part is commented out since it (presently) only produces errors anyway.