FSO på Linux Apache :(
Hej Eksperter,Mit gæstebogs script virker desværre ikke, da FSO ikke virker på Linux Apache.
Hvad kan jeg gøre for at få det til at virke??
Sådan ser scriptet ud:
<%
'Path of TXT-file to use. Script must have write access.
MyFile = "cgi-bin\guestbook.txt"
'Ready Scripting.FileSystemObject
Set MyFileObj=Server.CreateObject("Scripting.FileSystemObject")
'Opens textfile. 8 = add line to file, true = create if it doesn't exists
Set MyOutStream=MyFileObj.OpenTextFile(MyFile, 8, TRUE)
'Writes the line to the file
New_line = Request.Form("new_line")
New_line = Server.HTMLEncode(New_line)
'Adds the time and date it was posted
New_line = "<I>Posted: " & NOW & "</I><BR>" & New_line
MyOutStream.WriteLine(New_line)
'Closes the file
MyOutStream.Close
'Sends user back to default page
Response.Redirect "guestbook.asp"
%>
Mvh Smackers
