Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2004, 06:02 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default tracking hits and saving in new text files daily

Hi,
I have a web page where there are multiple hyperlinks
on that single page. Now I would want to track the
hits of user clicked on each hyperlink and insert this
data into a textfile. I would need to track hits of
multiple users and save them onto a textfile on the
server. Each day the server would have one text file
incremented. Like reportlog.ddmmyy.txt, and next day
reportlog.ddmmyy with dd increment as long as it is
same month. After that month increment.after that year
increment.
example: reportlog.09072004.txt
next day reportlog.09082004.txt.
And each text file would have multiple rows for each count hit.
Later I would run batch job to move the data from text
file to database.
But now I want code to count hits and send the data
into text file. Each day multiple rows would get
incremented in text file. Later I would move this data into database table.
I would appreciate any help on this.
Thanks in advance.



 
Old September 7th, 2004, 08:43 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


stop posting multiple times.



 
Old September 7th, 2004, 10:53 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am sorry but be'cz of not getting response here I happen to post there.
Thanks.

 
Old September 8th, 2004, 02:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can't you just use the web server logs? That would save having to code anything. Managing writes to a text file is complex in a multi-user scenario like the web, that's why most people use dbs!
 
Old September 8th, 2004, 08:58 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the answers!!
I have done this finally. I didn't use web server be'cz i need to track of individual pages. I can paste that code later.
Now i ahve an issue.I am not sure whether i can use task scehuler to migrate data using sql * loader.
Thanks.







Similar Threads
Thread Thread Starter Forum Replies Last Post
saving files in windows format rage989 PHP How-To 0 August 30th, 2007 03:07 PM
Read content of PPT files and saving to database Padmaja11 Other Programming Languages 0 July 19th, 2007 03:27 AM
Saving in multiple files at the same time rgasparoni XSLT 3 April 24th, 2006 07:21 AM
Saving Files on the Client System BSkelding ASP.NET 1.0 and 1.1 Basics 5 March 25th, 2004 01:25 PM
saving files using jscript shine Javascript How-To 2 January 2nd, 2004 11:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.