- see footer for list info -<


Could it be something to do with the fact that I am working on the server the code is actuallt runing on ..?


I just used that code with some minor alterations for formatting and it worked straight off.

<cfoutput>
<cfsavecontent variable="thisOutput">#lsdateformat(now(), "dd-mm-yyyy")# #lstimeformat(now(),"HH:MM")# IP Address - #cgi.remote_addr# Refering Page - #IIF(Len(cgi.http_referer),DE(cgi.http_referer),de('unknown'))# Page Viewed - #cgi.script_name#?#cgi.query_string#</cfsavecontent>
</cfoutput>
<cfset request.basepath = GetDirectoryFromPath(GetBaseTemplatePath())>
<cfif FileExists("#request.basepath#\visitorlog.txt")>
<cffile action="append"
file="#request.basepath#\visitorlog.txt"
output="#thisoutput#" addnewline="yes">
<cfelse>
<cffile action="write"
file="#request.basepath#\visitorlog.txt"
output="#thisoutput#" addnewline="yes">
</cfif>


Stephen

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to