owensbor
09-16-2006, 03:05 PM
I am tryng to collect or monitor what keywords or phases are typed into my site search. I am trying to do this with php. see below.
filename = "logfile.txt";
text = $_GET['search'];
fp = fopen ($filename, "a");
fwrite ($fp, "$text\n");
fclose ($fp);
it works but when i view the logfile all i see is unreadable symbols...
anyone want to help?
thanks
filename = "logfile.txt";
text = $_GET['search'];
fp = fopen ($filename, "a");
fwrite ($fp, "$text\n");
fclose ($fp);
it works but when i view the logfile all i see is unreadable symbols...
anyone want to help?
thanks