I am trying to insist to php, to break after it has writen an ip address and date, but it will actually write "
," and "/n" how can i actually make it break with a new line.
=========================...
function ipset(){
$ip = $_SERVER["REMOTE_ADDR"];
$new_file = "addresses.txt";
$file_handle = fopen($new_file,'a');
fwrite($file_handle,
$ip."-".date("m/d/Y").
"
")/n;
fclose($file_handle);
ipset();
}
?>
=========================...
OUTPUT in textfile:
(making more than one line because text box won't let me put long strings...)
=========================...
69.152.147.191-06/06/2007
(continue string on next line*)
69.152.147.191-06/06/...
(continue string on next line*)
=========================...
2007-06-06
07:25:24
·
3 answers
·
asked by
truepal20032001
2
in
Computers & Internet
➔ Programming & Design