i used this basic script:
$folderPath = "../path/to/$folder/"; mkdir("$folderPath");
I create this directory and then upload the photos to it. I have been doing this for 4-5 months and suddenly I start getting "FORBIDDEN" errors when I try to view the contents of a folder through a web browser
The catalog is created in the same way, and the photos still load without problems, but I can’t access the photos
I tried rewriting the script and using chmod to change permissions, but I had no luck
All old folders were created using: -w-rwx rx rx
and i can't get this recreated
I tried adding the chmod line to my script:
$folderPath = "../sales/inventory/$folder/"; mkdir("$folderPath"); chmod("$folderPath", 0755);
but I can’t recreate the same permissions, I’m trying to understand how chmod works, but I can’t figure out how to return this main function again.
php mkdir
Thomas
source share