freakkater Posted July 20, 2013 Share Posted July 20, 2013 (edited) I was curious about getting the result of this http://api.hostip.info/country.php?ip=141.100.10.49 (Result = DE) into a variable i can use to write into my DB (last thing is easy for me but i am curious about getting an answer how to do the first thing. beneath the snippet i had in my mind :-) <?php $in = HTTP_GET_RESPONSE('http://api.hostip.info/country.php?ip=141.100.10.49'); echo $in; /*write to DB*/ ?> thanks for the help in advance! P.S.: I don't know much about java/python/C(+/++/#) P.P.S.: http://kater.selfhost.me/stats/test.php that's the result :-( Edited July 20, 2013 by freakkater Quote Link to comment https://forums.phpfreaks.com/topic/280359-does-something-like-http_get_response-exist/ Share on other sites More sharing options...
Solution PaulRyan Posted July 20, 2013 Solution Share Posted July 20, 2013 file_get_contents Quote Link to comment https://forums.phpfreaks.com/topic/280359-does-something-like-http_get_response-exist/#findComment-1441533 Share on other sites More sharing options...
freakkater Posted July 20, 2013 Author Share Posted July 20, 2013 THANKS!!!(i would like your answer if this board would let me...) Quote Link to comment https://forums.phpfreaks.com/topic/280359-does-something-like-http_get_response-exist/#findComment-1441534 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.