Re: File permissions on Windows, IIS

From: Date: Fri, 14 Nov 2003 18:08:11 +0000
Subject: Re: File permissions on Windows, IIS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169662@lists.php.net to get a copy of this message
From: "Chris Shiflett" <shiflett@php.net> --- Marius Røstad <marius.rostad@imano.no> wrote: > > I have a Windows XP pro > [snip] > > How do I change file permissions to make it "identical" to the > > chmod 777 on Unix systems. > > With Windows, you probably right-click the file and go to properties, then > you want to grant read, write, and execute privileges to user, group, and > other. If you have anonymous browsing (default) enabled in IIS, then PHP (running within IIS) will run as the IUSR_* user (where * is generally the computer name). Do as Chris said and give the IUSR_* user permission to write to the directory where you're trying to use the file functions. If you're not using anonymous browsing and using integrated Windows Authentication, then you follow the same procedure except you need to give yourself permission to write to the folder in question. Basically, IIS almost "runs" as you and you must have permission to read the PHP file to begin with, then permission to write to the directory. ---John Holmes...

« previous php.general (#169662) next »