Jump to content

please help me using PHP Redirect page funtions


pklover

Recommended Posts

can any help me ? i want to use php for page redirection like iframe

 

<iframe src="www.mydoamin.com/page.php" width="500" height="450">

</iframe>

 

if this iframe use in my site redirect to www.mydoamin.com/mysitepage.html

 

if this iframe any other use than redirect to

www.mydoamin.com/sorry.html

As you probably know, php is all done serverside and is run before you get to see the page in html so iframe code would have to be generated in the php part of the program. In php, you can check $_SERVER['SERVER_NAME'] if you need to check the domain name and branch accordingly.

 

Unless you have control of the page that the iframe is placed on, I do not think that you can use php to do that kind of check. I might be mistaken though, see what others say.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.