kab_184
08-17-2003, 07:41 PM
hi
just found this code
<%
dim iplg, logFile8
set iplg=createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("IPLOG.txt"),8)
logFile8.write Request.ServerVariables("Remote_Addr") & vbcrlf
logFile8.close
set logFile8=nothing
set iplg=nothing
%>
it saves the ip addres to iplog.txt file....now the problem is
my website address is
http://www22.brinkster.com/devilhits/index.html
the if i add this snippet to a file "index.asp" whose address is
http://www22.brinkster.com/devilhits/all/index.asp
then at what place the iplog.txt file will be saved??
will for every folder in my website a separate iplog.txt file will be created ??
can i make an absolute address i mean a single iplog.txt file for whole of my website...? how??help me on this...
there is a a folder db in my account provided by my webhost.
the folder address is www22.brinskter.com/devilhits/db/
what changes shall i have to make to save the iplog.txt file in the db folder ??
i dunt know what n where to change the lines in the following snippet
to achive this
can any one explain and write the snippet edited in reply
<%
dim iplg, logFile8
set iplg=createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("IPLOG.txt"),8)
logFile8.write Request.ServerVariables("Remote_Addr") & vbcrlf
logFile8.close
set logFile8=nothing
set iplg=nothing
%>
thanks.... iany help shall be really gr8ful
kab 184
just found this code
<%
dim iplg, logFile8
set iplg=createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("IPLOG.txt"),8)
logFile8.write Request.ServerVariables("Remote_Addr") & vbcrlf
logFile8.close
set logFile8=nothing
set iplg=nothing
%>
it saves the ip addres to iplog.txt file....now the problem is
my website address is
http://www22.brinkster.com/devilhits/index.html
the if i add this snippet to a file "index.asp" whose address is
http://www22.brinkster.com/devilhits/all/index.asp
then at what place the iplog.txt file will be saved??
will for every folder in my website a separate iplog.txt file will be created ??
can i make an absolute address i mean a single iplog.txt file for whole of my website...? how??help me on this...
there is a a folder db in my account provided by my webhost.
the folder address is www22.brinskter.com/devilhits/db/
what changes shall i have to make to save the iplog.txt file in the db folder ??
i dunt know what n where to change the lines in the following snippet
to achive this
can any one explain and write the snippet edited in reply
<%
dim iplg, logFile8
set iplg=createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("IPLOG.txt"),8)
logFile8.write Request.ServerVariables("Remote_Addr") & vbcrlf
logFile8.close
set logFile8=nothing
set iplg=nothing
%>
thanks.... iany help shall be really gr8ful
kab 184