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? Quote 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? Quote 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 Quote 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 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? Quote 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 Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.