Permission Denied

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,

I have created a web page that is suposed to write a log file to the current
folder every time it is web page is run.
It works OK when run from my remote website, however when I try to test it
on the localhost I get this error message:

Warning: fopen(FN) [function.fopen]: failed to open stream: Permission
denied in c:\Inetpub\wwwroot\PFOL\TEST_files.php on line 26

In all other respects, the localhost site works perfectly. It only bombs
when the page tries to write the log file .

OS=WinXP Pro SP2

Plase help
John
 
John said:
Hi,

I have created a web page that is suposed to write a log file to the
current folder every time it is web page is run.
It works OK when run from my remote website, however when I try to test it
on the localhost I get this error message:

Warning: fopen(FN) [function.fopen]: failed to open stream: Permission
denied in c:\Inetpub\wwwroot\PFOL\TEST_files.php on line 26

In all other respects, the localhost site works perfectly. It only bombs
when the page tries to write the log file .

OS=WinXP Pro SP2

Plase help
John
Inquiring minds might determine what the permissions on the folder are. In
your case, the user not have the right to write to the folder in question.
Jim
 
The inquiring mind has already checked permissions and they are all OK. I am
logged as admin. I would not be asking questions if it was that obvious.

John


Jim said:
John said:
Hi,

I have created a web page that is suposed to write a log file to the
current folder every time it is web page is run.
It works OK when run from my remote website, however when I try to test
it on the localhost I get this error message:

Warning: fopen(FN) [function.fopen]: failed to open stream: Permission
denied in c:\Inetpub\wwwroot\PFOL\TEST_files.php on line 26

In all other respects, the localhost site works perfectly. It only bombs
when the page tries to write the log file .

OS=WinXP Pro SP2

Plase help
John
Inquiring minds might determine what the permissions on the folder are.
In your case, the user not have the right to write to the folder in
question.
Jim
 
John said:
The inquiring mind has already checked permissions and they are all OK. I
am logged as admin. I would not be asking questions if it was that
obvious.

John


Jim said:
John said:
Hi,

I have created a web page that is suposed to write a log file to the
current folder every time it is web page is run.
It works OK when run from my remote website, however when I try to test
it on the localhost I get this error message:

Warning: fopen(FN) [function.fopen]: failed to open stream: Permission
denied in c:\Inetpub\wwwroot\PFOL\TEST_files.php on line 26

In all other respects, the localhost site works perfectly. It only bombs
when the page tries to write the log file .

OS=WinXP Pro SP2

Plase help
John
Inquiring minds might determine what the permissions on the folder are.
In your case, the user not have the right to write to the folder in
question.
Jim
OK. Why didn't your first post include this information?
Why do I need to pry it out of you?
You ought to check permissions all the way to the top.
Jim
 
Back
Top