RON_ron Posted September 6, 2012 Share Posted September 6, 2012 http://api.hostip.info/country.php?ip= gives the below result in my browser. XX how do I echo the result in php same as the result in the browser? Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/ Share on other sites More sharing options...
Jessica Posted September 6, 2012 Share Posted September 6, 2012 You need to ask the question again and make it clear what you're trying to do. Do you want to get the visitor's IP address? Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/#findComment-1375740 Share on other sites More sharing options...
spiderwell Posted September 6, 2012 Share Posted September 6, 2012 i think he wants to grab a webpage with php and stuff it into a variable to echo out at his leisure Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/#findComment-1375766 Share on other sites More sharing options...
RON_ron Posted September 6, 2012 Author Share Posted September 6, 2012 Quote i think he wants to grab a webpage with php and stuff it into a variable to echo out at his leisure You are correct spiderwell. That's exactly what I need. Can you help? Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/#findComment-1375768 Share on other sites More sharing options...
Jessica Posted September 6, 2012 Share Posted September 6, 2012 file_get_contents Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/#findComment-1375791 Share on other sites More sharing options...
RON_ron Posted September 6, 2012 Author Share Posted September 6, 2012 thanks jesirose! Link to comment https://forums.phpfreaks.com/topic/268063-echo-browser-output-in-php/#findComment-1375799 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.