Page 1 of 1

How to set permission 707 in Window XP?

Posted: Sun Aug 14, 2005 4:17 pm
by goodmorningsky
I use linux hosting with appach for php/mysql
but I use window xp pro with IIS.

I set directory permission in hosting
mode: 707(and Apply to all files.) and my application works fine.

707: Owner: Read,Write,Exec, Other: Read,Write,Exc

How can I make the same permission in my comp, Xp pro?

I make share, .. but, it doesn't work.

The app create directories like following..
@fwrite($file,"<?\n$hostname\n$user_id\n$password\n$dbname\n?>\n"
@fclose($file);
@mkdir("data",0707);
@mkdir("images",0707);
@mkdir("img",0707);
@mkdir("img/banner",0707);
@mkdir("img/item",0707);
@mkdir("img/bg",0707);
@mkdir("img/class",0707);
@mkdir("img/session",0707);
@chmod("data",0707);
@chmod("images",0707);
@chmod("img",0707);
@chmod("img/banner",0707);
@chmod("img/item",0707);
@chmod("img/bg",0707);
@chmod("img/class",0707);
@chmod("img/session",0707);
@chmod("config.php",0707);

this doesn't work on my window..

Any idea?

Thank you..

Posted: Sun Aug 14, 2005 4:56 pm
by programmermatt
PHP, as far as I know, does not support permissions on WinXP. If they did it would be a little more complex than the nice #### system that linux has.

Posted: Sun Aug 14, 2005 5:44 pm
by theda
I am not quite sure that Windows Servers actually support CHMOD. CHMOD is specifically Unix servers, I do believe. However, I believe that Windows IIS systems have their own featuers of security that do things similar to CHMOD.

Posted: Sun Aug 14, 2005 5:45 pm
by theda
I have found a website that has a tutorial on how to set permissions on IIS, if I find anything about WinXP servers, I'll post it also:

http://coppermine-gallery.net/tutorial/ ... ns/iis.php

To install IIS on WinXP Professional PC's: http://www.dotproject.org/articles.php?action=read&id=5

Edit: Make your own PC a web server free with http://www.aprelium.com/abyssws/