Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


PHP code filter_list
Author
Message
PHP code #1
Hi!!!

Well, recently I found this little php, I'm trying one little project with it. Well... If somebody can help me,

I need this code:
Code:
if ($action == "write"){
$open = fopen("log.txt", 'a');
fwrite($open, $data);
fclose($open);
}

to write the data on a new line Smile

Thanks!
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: PHP code #2
Cant you just save that code as .php?
Our education system is mostly about teaching people what to think, not how to think.Confusedtupid:

Reply

RE: PHP code #3
(02-20-2011, 01:13 PM)The 7th Sage Wrote: if i'm not mistaken php has escape sequences. Use "\n"
darkscorpion solved it, but I deleted the pm by mistake... anyway I managed to solve it yesterday Biggrin but thanks Smile

here is the edited part:

PHP Code:
if ($action == "write"){
$open fopen("log.txt"'a');
fwrite($open$data."\n");
fclose($open);


Smile thanks!
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: PHP code #4
thanks dude very much and cheers

Reply







Users browsing this thread: 1 Guest(s)