mkdir cannot create a directory inside INETPUB

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
lawrence_chtan
Forum Newbie
Posts: 22
Joined: Mon Jan 02, 2006 8:20 pm
Location: SINGAPORE

mkdir cannot create a directory inside INETPUB

Post by lawrence_chtan »

Hi all the Guru

seems like the development of php is lookings good however I had some difficulty

when i use

Code: Select all

mkdir("C:/inetpub/wwwroot/0wlp/$dir_name",0777);
I m failed to create the directory in that directory

where if i use

Code: Select all

mkdir("/$dir_name",0777);
That will work. is that because i m accessing the folder itself?

thanks for your great help.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

That's weird, I've got no clue. 8O
lawrence_chtan
Forum Newbie
Posts: 22
Joined: Mon Jan 02, 2006 8:20 pm
Location: SINGAPORE

Post by lawrence_chtan »

so u mean

that can work even if i m practically accessing that website

http://locahost/0wlp/

hm...... strange.....
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Just curious...

Is it a SAFE MODE problem?

The second is using a relative path, whereas the first is an absolute...which might be a no-no???
Post Reply