Permission Denied

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
 
J

Jim

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
 
J

John

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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top