Code:
<%
fp = Server.MapPath("aspcount.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
if Session("ct") = "" then
Session("ct") = ct
ct = ct + 1
a.close
Set a = fs.CreateTextFile(fp, True)
a.WriteLine(ct)
end if
a.Close
Response.Write ct
%>
I get the error:
Quote:
Microsoft VBScript runtime error '800a0046'
Permission denied
/scrowler/default.asp, line 100
|
Line 100 happens to be:
Code:
Set a = fs.CreateTextFile(fp, True)
Do I have to CHMOD aspcount.txt or something?