Current location: Hot Scripts Forums » Programming Languages » ASP » create log file


create log file

Reply
  #1 (permalink)  
Old 02-25-10, 07:45 AM
rsmahaa rsmahaa is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
create log file

Hi All,

Before that i have used below code to create log file using PHP. The code is
PHP Code:
  1. // log downloads
  2. if (!LOG_DOWNLOADS) die();
  3.  
  4. $f = @fopen(LOG_FILE, 'a+');
  5. if ($f) {
  6.   @fputs($f, date("Y-m-d")."#".date("g:ia")."#".$_SERVER['REMOTE_ADDR']."\r\n");
  7.   @fclose($f);
  8. }

Now i am developing download code in ASP. So that i need to create log file after each download. Is this possible to convert This code to ASP ? or any other method ? I dont know ASP. Plz someone help...
Reply With Quote
  #2 (permalink)  
Old 03-03-10, 02:31 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with upload script triplebig PHP 14 09-13-09 01:52 AM
PHP script allowing to create, and write to an XML file... Xenon121 Script Requests 0 04-18-06 09:50 PM
create a link to an exe file Sash HTML/XHTML/XML 4 09-07-04 07:51 PM
Getting the created file (fopen/fwrite) Programme PHP 5 02-14-04 03:09 PM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM


All times are GMT -5. The time now is 04:06 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.