Hi friends,
        I'm trying to make a log of visitor's IP, making sure that no IP gets 
written more then once. I'm using this code:
 
<% 
VisitorsIP = Request.ServerVariables ("REMOTE_ADDR") 
Set fs = CreateObject("Scripting.FileSystemObject") 
Set wfile = fs.OpenTextFile("c:\Virdi\Addons\IpLog.txt",8,false,0) 
wfile.WriteLine(VisitorsIP) 
wfile.close Set wfile=nothing 
Set fs=nothing 
%>
        IpLog.txt is in the folder, a blank txt file. But I'm getting the 
following error.
 
Microsoft VBScript runtime error '800a0046' 
Permission denied 
/addons/IPLog.asp, line 4
 
        What & Where's the prob in the code??? I had also given ' write ' 
rights to this txt file. Kindly explain me that red line, What r those 8, 
false, & 0 r for?
 
G.S.Virdi
 


DISCLAIMER 
********************************************************************************
 
Information contained and transmitted by this electronic communication together 
with any attachments, may be legally privileged or confidential and is intended 
only for the exclusive use of the individual(s) or entity to which it is 
addressed. Opinions expressed are those of the sender and not necessarily that 
of BHEL-PEM. If you are not the intended recipient or an agent of the intended 
recipient or a person responsible for delivering the information to the named 
recipient, you are notified that any use, copying, distribution, transmission, 
printing, dissemination, of this message is strictly prohibited. 

If you have received this message in error, please notify us immediately at 
[EMAIL PROTECTED] and delete the message.

While BHEL-PEM is using the latest antiviral tools, we do not accept any 
responsibility for problems caused by viruses or other destructive mechanisms, 
which may get attached to electronic communication. Please scan this email and 
its attachment, if any, to ensure that the message is safe for use on your 
system.


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

ASP Resources  www.asp-dev.com

============================================================
Learn over lunch. Get the developerWorks newsletter and
enjoy tools, code, and tutorials, along with your sandwich.
XML, Linux, Web services, Java -- and peanut butter!
http://www.topica.com/partner/AP-1RMZ49/partners/ibm/aff_landing.html
============================================================
 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/asp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to