view asp from asp
-2
A painfully simple method of viewing the contents of an ASP script via an ASP script.
Dim FileObject, oInStream
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
Set oInStream = FileObject.OpenTextFile (Server.MapPath(Request("source")), 1, FALSE, 0)
On error resume next
While NOT oInStream.AtEndOfStream
Response.Write Server.HTMLEncode(oInStream.ReadLine)
Wend






There are currently no comments for this snippet.