View Full Version : Google Search Engine API
duckman
Mar 17th 2004, 11:55 pm
How do I record the phrases that customers are using to search my site?
Could it possible to provide the code is ASP format?
Very awesome tool, ASP format would go over better with my IT team.
Thanks for you help
Duckman
digitalpoint
Mar 18th 2004, 12:03 am
You could do something like:
$handle = fopen("searchlog.txt", "a");
fwrite($handle, $q . "\r\n");
fclose ($handle);
I didn't test it or anything, so that's off the top of my head (let me know if it works). It should create a file named searchlog.txt and log the queries to it (one query per line).
One thing to watch out for is make sure the web user (httpd maybe?) has access to write to that file. If that user can't do anything in that directory, you could create it manually, then give them write permissions to it.
In regards to an ASP version... sorry, (probably) not going to happen. :)
- Shawn
duckman
Mar 18th 2004, 8:03 pm
Thanks Shawn.
I'll give it try.
Duckman
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.