Jump to content

Writing to a text file


Guest cuz

Recommended Posts

HiThis is the code taken straight from the w3schools site, when i run the file i get an error saying permission denied, i have given write permission in IIS and i have write permission in the folder: :):) <%Set FS=Server.CreateObject("Scripting.FileSystemObject")Set RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 1, False)ref_num=RS.ReadLineRS.Closeref_num=ref_numSet RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 2, False)RS.Write ref_numRS.Close%>

Link to post
Share on other sites

You used IIS to give write permissions to the anonymous web user? The account is called IUSR_<machine name>, make sure it has write access to the folder.Does any ASP run at all, or do you get permission denied on all ASP pages?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...