NogDog wrote:As far as I know, you can only read cookies from the current domain. Remember: your PHP script is not reading cookies from the files on the client computer, but rather receiving cookies that the client sends as part of the HTTP request/response traffic between it and the server. Besides, do you really want to be browsing on an internet where any server-side application could read cookies from any site you have visited?
It might be possible to have a page on site A display an image or other object from site B that sets/reads a cookie, but many user's security settings will reject such 3rd-party cookies, so you can't count on that working.
Ok, I guess that what I am really trying to get at here is this... I bought a domain several months back for the sole purpose of housing a statistics script, that does exactly that; it sends back information about the viewers of my various sites. This script itself is rather unconventional, as I have recently found other scripts that show much more information, such as phpMyVisites and Trace Watch, two wonderful open source stats scripts that I would suggest to anyone. However, I continue to use the original script that I had found, but only to capture the viewers IP address, which neither phpMyVisites nor Trace Watch do.
So, moving along... The reason I have come to post this today is this; I have recently found that this php stats script that I have (the unconventional one) has proven to be pretty good for tracking the IP's, the ISP's, and the browsers of the people who view my myspace page... Yes yes I know, myspace!! What a joke, but I do have one. 😉 What I am trying to accomplish here is to be able to also return the viewers primary myspace photo, a URL to the viewers profile page, or maybe just the users myspace ID and I will handle the rest. But, at this point I would just like to be able to better know who each person is, rather than just having their IP address... I though that this might be done by retrieving the cookies that mayspace generates. Would you happen to have a better suggestion for me?
~Chris