>- see footer for list info -< Does visitorlog.txt exist. You cannot append to a file that is not there, you need to create it first.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Stephen Moretti (cfmaster) > Sent: 09 November 2004 17:11 > To: Coldfusion Development > Subject: Re: [CF-Dev] cheap & cheerful > > >- see footer for list info -< > <cfoutput> > <cfsavecontent variable="thisOutput"> > #lsdateformat(now(), "dd-mm-yyyy")# 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> > <cffile action="Append" > file="e:\inetpub\wwwroot\store\visitorlog.txt" > output="#thisOutput#"> > > > > Mike Connolly wrote: > > >>- see footer for list info -< > >> > >> > >To re-iterate Mark and Adrian... > > > >datenow() isn't a function. Try now() instead. > > > >-----Original Message----- > >From: Paul Swingewood [mailto:[EMAIL PROTECTED] > >Sent: 09 November 2004 16:59 > >To: [EMAIL PROTECTED] > >Subject: RE: [CF-Dev] cheap & cheerful > > > > > > > > > >>- see footer for list info -< > >> > >> > >Sorry about that its late in the day and my head hurts .... > > > >I have this .... > > > ><!--- Log Visitors ---> > > > ><CFSET address = cgi.remote_addr> > ><CFSET referer = cgi.http_referer> > ><CFSET page = cgi.script_name> > ><CFIF NOT LEN(referer)> > ><CFSET referer = "unknown"> > ></cfif> > ><cffile action="Append" > > file="e:\inetpub\wwwroot\store\visitorlog.txt" > > output="#lsdateformat(datenow(), dd-mm-yyyy)# IP > Address - #address# > >Refering Page - #referer# Page Viewed - #page#"> > > > > > >Still doesn't write to the visitorlog.txt file though :( > > > > > >_______________________________________________ > > > >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 -< > >> > >> > > > > > > > > > >_____________________________________________________________ > __________ > >Confidentiality: This e-mail and its attachments are > intended for the above named only and may be confidential. > If they have come to you in error you must take no action > based on them, nor must you copy or show them to anyone; > please reply to this e-mail and highlight the error. > > > >Security Warning: Please note that this e-mail has been > created in the knowledge that Internet e-mail is not a 100% > secure communications medium. We advise that you understand > and observe this lack of security when e-mailing us. > > > >Viruses: Although we have taken steps to ensure that this > e-mail and attachments are free from any virus, we advise > that in keeping with good computing practice the recipient > should ensure they are actually virus free. > >_____________________________________________________________ > __________ > >_ _______________________________________________ > > > >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 -< > >> > >> > > > > > > > > > -- > Registration for MX Europe 2005 is now open. > http://www.mxeurope.org/go/registration > > Early bird discounts available. > > > _______________________________________________ > > 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 > >-< > _______________________________________________ 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 -<
