I need to get one of my pages to create a log of when users access it, aslo where these users came from.
The code I intend to use is...
Expand|Select|Wrap|Line Numbers
- Dim landingstats
- Set oFs = Server.CreateObject("Scripting.FileSystemObject")
- Set oFile = oFs.CreateTextFile(Server.MapPath("/landingstats.csv"),2,True)
- oFile.write adid & "|" & timestamp
- oFile.Close
- Set oFile = Nothing
- Set oFs = Nothing
When the page runs i get the following error code.
Microsoft VBScript runtime error '800a0046'
Permission denied
/credit-report/landing.asp, line 12
How do i set the permissions?
Many thanks in advance,
Liam