i have this thing i added to my uploader
after every file upload it logs user-file-date/time and so on but i want it to skip lines after every input so far i have this

Code:

$file = $my_uploader->file['name'];
$sep = " | ";
$date = date("F j, Y, g:i a");
$ip = $_SERVER['REMOTE_ADDR'];
$enter = "*";
$logs = $sep . $ip . $sep . $file . $sep . $date . $sep . $enter;
$log = str_replace('*', '/n', $logs);
$us = fopen("logs.php","a");
fwrite($us, $log);
fclose($us);

as you can see i tried $log = str_replace('*', '/n', $logs); to make it jump to the next line but that didn't work it just rights /n in the text, any suggestions?
ROFL! its \n not /n Laughing (no need to do a str_replace either, just do a . "\n" instead of . enter Wink )
/me slaps head

thanks
Dude, just get Google analytics. Good Idea
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement