Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   ASP (http://www.programmingforums.org/forum32.html)
-   -   What is wrong with this code? (http://www.programmingforums.org/showthread.php?t=5535)

squishiful Aug 23rd, 2005 11:27 AM

What is wrong with this code?
 
Every time I try to read/write to a file the page will not load, everything else works though. I am using Sun One on windows apache. Help pleaz!
:

<html>
<body>
<%Response.Expires=-1%>
<%
set fso=Server.CreateObject("Scripting.FileSystemObject")
set fname = fso.CreateTextFile("c:\test2.txt", true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>
</body>
</html>


OpenLoop Aug 23rd, 2005 11:34 AM

Quote:

Originally Posted by squishiful
Every time I try to read/write to a file the page will not load, everything else works though. I am using Sun One on windows apache. Help pleaz!
:

<html>
<body>
<%Response.Expires=-1%>
<%
set fso=Server.CreateObject("Scripting.FileSystemObject")
set fname = fso.CreateTextFile("c:\test2.txt", true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing%>
</body>
</html>


shouldn't that line in bold be
:

set fso=nothing
%>


squishiful Aug 23rd, 2005 11:39 AM

it already is, but thanx

squishiful Aug 23rd, 2005 11:53 AM

oh yah srry
u were right
man I am blind

squishiful Aug 23rd, 2005 11:54 AM

darn it still doesn't work

squishiful Aug 23rd, 2005 12:09 PM

I figured it out:
I had norton antivirus and it had script blocking enabled

OpenLoop Aug 23rd, 2005 1:01 PM

Quote:

Originally Posted by squishiful
I figured it out:
I had norton antivirus and it had script blocking enabled

ROFL :D


All times are GMT -5. The time now is 6:10 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC