pklover Posted March 14, 2010 Share Posted March 14, 2010 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 Link to comment https://forums.phpfreaks.com/topic/195166-please-help-me-using-php-redirect-page-funtions/ Share on other sites More sharing options...
ocpaul20 Posted March 14, 2010 Share Posted March 14, 2010 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. Link to comment https://forums.phpfreaks.com/topic/195166-please-help-me-using-php-redirect-page-funtions/#findComment-1025808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.