I am using PHP in Windows 2000 platform.
I am using a text file like ( daily_visitors.pol etc.) to track the hit counter.
The script working well in previous version - PHP-4.2.1-win32.
But when I install PHP-4.3.2-win32 version, it gives me some annoying errors.
----------------
Warning: fopen(c:/inetpub/wwwroot/shah/cnt/daily_visitors.pol): failed to open stream: Permission denied in c:\inetpub\wwwroot\shah\cnt\counter.php on line 157
Warning: fwrite(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\shah\cnt\counter.php on line 161
Warning: fclose(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\shah\cnt\counter.php on line 162
Warning: fopen(c:/inetpub/wwwroot/shah/cnt/daily_count.pol): failed to open stream: Permission denied in c:\inetpub\wwwroot\shah\cnt\counter.php on line 164
Warning: fwrite(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\shah\cnt\counter.php on line 165
Warning: fclose(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\shah\cnt\counter.php on line 166
-----------
Any insrtuction will be appriciable.
File access permission error
Moderator: General Moderators
-
Khairul Alam
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 09, 2003 6:27 am
-
Khairul Alam
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 09, 2003 6:27 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
These errors:
Mac
andWarning: fopen(c:/inetpub/wwwroot/shah/cnt/daily_visitors.pol): failed to open stream: Permission denied in c:\inetpub\wwwroot\shah\cnt\counter.php on line 157
are causing the other errors and are permissions errors - may we see line 157+164 and could you tell us what the permissions are on the files currently.Warning: fopen(c:/inetpub/wwwroot/shah/cnt/daily_count.pol): failed to open stream: Permission denied in c:\inetpub\wwwroot\shah\cnt\counter.php on line 164
Mac
-
Khairul Alam
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 09, 2003 6:27 am