Page 1 of 1

mkdir cannot create a directory inside INETPUB

Posted: Thu Mar 02, 2006 7:50 pm
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.

Posted: Thu Mar 02, 2006 9:00 pm
by neophyte
That's weird, I've got no clue. 8O

Posted: Thu Mar 02, 2006 10:10 pm
by lawrence_chtan
so u mean

that can work even if i m practically accessing that website

http://locahost/0wlp/

hm...... strange.....

Posted: Thu Mar 02, 2006 11:44 pm
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???