leequalls Posted January 3, 2009 Share Posted January 3, 2009 is there a way to get the url that is in the users address bar into my php script? lets say my site url is mysite.com and a user goes there from a frames url rotation.com I want it so that if rotation.com is the url they are at I can change the header(); Link to comment https://forums.phpfreaks.com/topic/139359-getting-url/ Share on other sites More sharing options...
bubbasheeko Posted January 3, 2009 Share Posted January 3, 2009 If rotation.com is in a frame on mysite.com - simply get the mysite.com address by placing this into a variable outside of the frame: $_SERVER['SERVER_NAME']; If that is what you mean :S Link to comment https://forums.phpfreaks.com/topic/139359-getting-url/#findComment-728906 Share on other sites More sharing options...
leequalls Posted January 3, 2009 Author Share Posted January 3, 2009 no $_SERVER['SERVER_NAME'] only gets the mysite.com address I want to get the rotation.com address. Link to comment https://forums.phpfreaks.com/topic/139359-getting-url/#findComment-728913 Share on other sites More sharing options...
bubbasheeko Posted January 3, 2009 Share Posted January 3, 2009 Do you run the 'rotation.com' page? Link to comment https://forums.phpfreaks.com/topic/139359-getting-url/#findComment-728944 Share on other sites More sharing options...
bubbasheeko Posted January 4, 2009 Share Posted January 4, 2009 This has been a question asked by many it seems. Apparently you can't do it. Especially if you are the admin of the website and not the admin of the page in the iframe. Link to comment https://forums.phpfreaks.com/topic/139359-getting-url/#findComment-729051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.