mkdir on Windows

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
crandym
Forum Newbie
Posts: 21
Joined: Thu Jan 29, 2004 8:52 am

mkdir on Windows

Post by crandym »

Is anyone familar with what is necessary to get mkdir to work on a Windows XP system?

When I try to make a directory in php, I get a permission denied error message. I am currently running IIS as the WebServer.

thanx

crandym
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i run apache on 2 windows boxes(windows 2000 pro & win 2003 server) and 1 linux box (RH9)

i have used mkdir on windows many times and it works fine, only solutions i can think:

your not running as "superuser" (admin)
your trying to create a folder somewhere that doesnt exist
your trying to create a folder in someone elses "root" folder

or possibly an IIS problem ( i have never used it ) which i very much doubt as mkdir is a universal command
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Not a problem here either on my development computer, though I'm also using Apache...

Do check the userlevel you are running IIS as malcolmboston mention. I've seen that this is a common mistake for alot of people using IIS.
crandym
Forum Newbie
Posts: 21
Joined: Thu Jan 29, 2004 8:52 am

Post by crandym »

Thanks for the input. I was hoping someone would replay who has some experience in setting up file permissions in the IIS/Windows environment. In nix, it's pretty simple to do, but in Windows, I've read everything and tried everything I can with no luck.
crandym
Forum Newbie
Posts: 21
Joined: Thu Jan 29, 2004 8:52 am

Post by crandym »

I currently have php installed as CGI. Would this have something to do with it?
Post Reply