|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Application developers can seamlessly integrate the Advantage Database install with their application install. Learn the best practices used when setting up silent installs with this seminar. |
|
#1
|
||||
|
||||
|
Permission to write files in wwwroot
Using PHP 4.3.4 with IIS 5.1, I am trying to open a file for write access in wwwroot:
Code:
<?php
$handle=fopen("msg.txt","wb");
fclose($handle);
?>
The code flags an error on running the script, claiming that I don't have permission: Quote:
I went to the IIS control panel, Default Web Site properties, Home Directory, and ticked the Write access box. I restarted and still get the same error. Is there another permission I have to modify?
__________________
Ben Forbes Windows XP Professional MS Visual Studio .NET 1.53 ghz Athlon XP |
|
#2
|
||||
|
||||
|
Don't worry, I worked it out. I had to tweak the actual folder security settings in Explorer, for wwwroot. Administrators had full access, but users didn't, which implies that a PHP script doesn't run as an administrator, but a user. Is that correct?
BTW, I was always logged in as an administrator. |
|
#3
|
|||
|
|||
|
By default IIS runs under the IUSR_computername local user account when it's servicing anonymous web users. If your site forces user authentication, IIS will impersonate the logged-in user.
The server administrator can change the default IIS user account. |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Permission to write files in wwwroot |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|