php + windows + permissions

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
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

php + windows + permissions

Post by itsmani1 »

I am using php on IIS Windows, how to manage permissions on it. i am trying

Code: Select all

chmod("abc.html", "0777");
but its not working ...

Thanks.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

You might have to set it with permittions for PHP to access it first.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

how can i do that?
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

I am not 100% sure but you should be able to go to the folder/file you want to give permitions to then right click on it and go to sharing and security and then set up the file to be shared to everyone with full rights
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

yeah, i know this can be done this way, but i want to do it via some php function? is this possible in that way?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

itsmani1 wrote:yeah, i know this can be done this way, but i want to do it via some php function? is this possible in that way?
Only if PHP has the rights for doing so.
Post Reply