Welcome Guest, Not a member yet? Register   Sign In
IP of remote Server - embedded script
#2

[eluser]champs[/eluser]
If you're embedding an entire page through an IFRAME, then this ought to work, not that I've tested it..

Code:
// get the referring page, i.e. http://example.com/2008/01/25/some-boring-crap.html
$referer = $this->input->server('HTTP_REFERER');

// turn the page into its constituent parts (scheme/host/URI/query string, etc.)
$r_parts = parse_url($referer);

// grab the array index you care most about
$domain  = $r_parts['host'];

If it's just the SWF, then it will be up to Flash to grab the same information, and since I stabbed all ActionScript knowledge out of my brain years ago and can't easily find the documentation on it, you're on your own.


Messages In This Thread
IP of remote Server - embedded script - by El Forum - 01-25-2008, 07:38 AM
IP of remote Server - embedded script - by El Forum - 01-26-2008, 08:00 AM
IP of remote Server - embedded script - by El Forum - 01-28-2008, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB