write_to_log_file.php
<?php
//log the action
$log = fopen('log.txt',"a");
date_default_timezone_set('Europe/London');
//@fwrite($log,date('h:i:s d-m-Y ')." Item '$file' added to zip archive '".$_POST['archive_name']."' by {$_SERVER['REMOTE_ADDR']}\n");
@fwrite($log,date('h:i:s,d-m-Y').",Item '$file' added to zip archive '".$_POST['archive_name']."',{$_SERVER['REMOTE_ADDR']}\n");
fclose($log);
?>
Paul's Code Library
Categories
HomeAJAX
classes
database_functions
date_functions
file_functions
googlevideo_and_youtube_api
htaccess
image_functions
string_functions