Link Spy

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Link Spy

Post by nickman013 »

Hello,

Some of you may have heard of IMChaos Link Spy, well basically it posts the screen name of the person that clicked on the link, and it posts it on a table. I would like to make my own simple table. I got the screenname from the person using a AIM thing. My link to the page is http://www.mysite.com/page.php?sn=SCREENNAME , Now I just need to know how to post it onto a table and save.

Thank You.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

How to post it into a mysql table?

http://www.php.net/mysql
Please elaborate
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

:oops:
I dont have mySQL hosting.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Well you could write the screenames to a text file, with one screename per line.

http://www.php.net/fwrite
is the documentation for creating files, you'll want to use fopen() with the mode "a" for append (since you'll be adding a line to the file)

The file() command ( http://www.php.net/file ) will let you load an array of screenames out of the file


Good luck
Post Reply