i-Frame

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

i-Frame

Post 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.
anantha
Forum Commoner
Posts: 59
Joined: Thu Dec 23, 2010 7:38 pm

Re: i-Frame

Post by anantha »

you can use $_SERVER['HTTP_REFERER']..but it is not dependable
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Re: i-Frame

Post 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.
Post Reply