Hi, I will have a PHP script on a site that accesses a PHP script on another site. For example site A (e.g. http://www.siteA.com/grab.php) needs to get the RSS feed from site B (e.g. http://www.siteB.com/rss.php). Is there a way that I could code the page on siteB so it knows which page on what domain is accessing the file? I need this so I can store it in to a database... So for example if site A accesses the RSS page on site B, "http://www.siteA.com/grab.php" would be stored in a variable in rss.php? I hope that was clear enough.... Thanks, Hodge
I used to use that but for some user agents it doesn't work: Is this the best option possible though?
Unless you have control over the sites which grab the feed, there's not a lot you can do. At best, you could record the IP address and then at least you'd know which server the request came from but as for which domain let alone which page, you'd need the page to give you that information. (I.e. by forcing it to use /rss.php?from=http://siteA.com/grab.php)