The following works on localhost but not on the server (called from script in root folder):
mkdir("images/sub/folder") // works
mkdir("/images/sub/folder") // also works
It actually fails in two ways on the server.
First, to make a new folder in the root directory (despite having the script residing within it that is attempting to create the new folder) I must precede the new folder with ./ else it will give me a "file/directory does not exist" error.
Second, if I attempt to make multiple folders at once (e.g. both /sub and /folder in the same path from the previous example) it will again kick back the dir-not-exist error. I must create each new folder separately, e.g.
mkdir("./images/sub");
mkdir("./images/sub/folder");
I'm assuming the second issue is related to the recursive parameter of the mkdir function, although I've not had a new opportunity to try it on my server just yet. Regardless, where can I change these particular settings to mimic these errors so I can develop in an environment similar to my server?

New Topic/Question
Reply



MultiQuote




|