saving information in file in php
Posted
by Mac Taylor
on Stack Overflow
See other posts from Stack Overflow
or by Mac Taylor
Published on 2010-03-21T11:24:06Z
Indexed on
2010/03/21
11:31 UTC
Read the original article
Hit count: 421
hey guys
i want to write a tracking system and now i can save in my Mysql database . but saving information about each ip that visits is a huge work for mysql
so i think if i could save the information in a file , then there is no discussion about database and its problems .
but to begin this : i realy dont know how to save in a file in a way that i can read it with no problem and show the details
this is what is used to insert into my database
sql_query("insert into tracking (date_time, ip_address, hostname,referer, page , page_title)
values
('".sql_quote($dt)."', '".sql_quote($ipaddr)."', '".sql_quote($hostnm)."','$referer', '".sql_quote($pg)."', '".sql_quote($pagetitle)."')", $dbi);
i need to show information about all ips in rows , after saving in a file
what should i do to save and show in row order ( table )
php/mysql
© Stack Overflow or respective owner