create log file after download
Hi All,
Before that i have used below code to create log file using PHP. The code is
PHP Code:
// log downloads
if (!LOG_DOWNLOADS) die();
$f = @fopen(LOG_FILE, 'a+');
if ($f) {
@fputs($f, date("Y-m-d")."#".date("g:ia")."#".$_SERVER['REMOTE_ADDR']."\r\n");
@fclose($f);
}
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...