upload files, umask, mkdir - Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ssand
Forum Commoner
Posts: 72
Joined: Sat Jun 22, 2002 9:25 pm
Location: Iowa

upload files, umask, mkdir - Error

Post by ssand »

Hello,

I have made an upload script that makes a subdirectory and then copy the file to the subdirectory.

Problem I keep gettting "Error! Could not create subdirectory! (Permission denied)".

Although when I FTP to the site and examine the base upload directory it says 777.

I am tried using umask(000); before the mkdir but still receive the error.

Not sure what to do. Can the .htaccess file allow this and how??

The is on Windows NT. I also found that if I try to chmod a directory other than that of the default I always get an error. Or is this some system item the host provider has to change.

Thanks - Steve
User avatar
nathus
Forum Commoner
Posts: 49
Joined: Thu Dec 12, 2002 6:23 pm

Post by nathus »

chmod is a *nix command, and doesn't work on windows based servers. in my experience with windows based servers (very limited) the server takes care of file permissions for you automatically.
serg4444
Forum Newbie
Posts: 9
Joined: Fri Nov 22, 2002 10:27 am

Post by serg4444 »

I use Windows commander for upload files by FTP - Files->Change Attributes - work for both Unix and Win NT servers

Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
Post Reply