I would like a very simple php script, with a basic design. I would like to attach a callback to some php scripts I already have.
I want to be able to php include the callback script into a page. When that page is accessed, the callback script on my server will then write a new line to a text document with the full url to the page that included the callback file.
I would like this script to add a new line each and every time it records a url, so has the ability to store millions of url's, each on their own line.
Also, if possible - I will explain by using an example - If I were to visit [url removed, login to view], and the remote callback script recorded that url to the text file, the next time that url is visited, it won't get logged to the text file, because it's already there. Basically, if a particular url is already in the text file, I don't want it to go in twice (or more). So it can't store the same url twice, but can store multiple different url's.