Page 1 of 1

i-Frame

Posted: Thu Feb 24, 2011 8:26 am
by spacebiscuit
Hi guys,

I am using an i-frame to display a page on another domain, this page makes a redirection. Is it possible to read the url of the final redirected page into a variable?

Thanks in advance,

Rob.

Re: i-Frame

Posted: Thu Feb 24, 2011 10:58 am
by anantha
you can use $_SERVER['HTTP_REFERER']..but it is not dependable

Re: i-Frame

Posted: Thu Feb 24, 2011 11:17 am
by spacebiscuit
I should perhaps clarify - I want to read the url of the final redirected page into a variable on the page which is displaying the i-frame.

I tried the $_SERVER['HTTP_REFERER'] variable and this just game me the URL of the page hosting the iframe.

Thanks,

Rob.