I am trying to get user ip by including a file in html,
ob_start();
?>
<object content="text" data="http://wtfismyip.com/text"> </object>
<?php
$ip = ob_get_clean();
This code does work as I get the users ip, any idea how to get the output as pure text instead of as an object? For exampe filtering the output variable?
NOTE: I can not use the $_SERVER due to proxying.