error

error

am 04.10.2007 14:52:42 von dev

when i try web site visitor counter code on my winXP with IIS the
following warning messages display


This page has been visited 6 times
Warning: fopen(counter.txt) [function.fopen]: failed to open stream:
Permission denied in C:\Inetpub\wwwroot\dev.php on line 16

Warning: fwrite(): supplied argument is not a valid stream resource in
C:\Inetpub\wwwroot\dev.php on line 17

Warning: fclose(): supplied argument is not a valid stream resource in
C:\Inetpub\wwwroot\dev.php on line 18


please give any idea to solv this.

thanks in advance.

Dev

Re: error

am 04.10.2007 15:03:31 von Jerry Stuckle

Dev wrote:
> when i try web site visitor counter code on my winXP with IIS the
> following warning messages display
>
>
> This page has been visited 6 times
> Warning: fopen(counter.txt) [function.fopen]: failed to open stream:
> Permission denied in C:\Inetpub\wwwroot\dev.php on line 16
>
> Warning: fwrite(): supplied argument is not a valid stream resource in
> C:\Inetpub\wwwroot\dev.php on line 17
>
> Warning: fclose(): supplied argument is not a valid stream resource in
> C:\Inetpub\wwwroot\dev.php on line 18
>
>
> please give any idea to solv this.
>
> thanks in advance.
>
> Dev
>

Sounds like your IIS user doesn't have permission to open and write to
the file.

Try a Windows admin group.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: error

am 04.10.2007 15:07:21 von Shelly

"Dev" wrote in message
news:1191502362.590878.50000@k79g2000hse.googlegroups.com...
> when i try web site visitor counter code on my winXP with IIS the
> following warning messages display
>
>
> This page has been visited 6 times
> Warning: fopen(counter.txt) [function.fopen]: failed to open stream:
> Permission denied in C:\Inetpub\wwwroot\dev.php on line 16
>
> Warning: fwrite(): supplied argument is not a valid stream resource in
> C:\Inetpub\wwwroot\dev.php on line 17
>
> Warning: fclose(): supplied argument is not a valid stream resource in
> C:\Inetpub\wwwroot\dev.php on line 18
>
>
> please give any idea to solv this.
>
> thanks in advance.
>
> Dev
>

Fix the permission on the file you are trying to open -?)

Shelly