$text = file_get_contents("http://127.0.0.1/name.php?name=Lary");
I want to use it to get only the text, not the html.
$text = file_get_contents("http://127.0.0.1/name.php?name=Lary");
I want to use it to get only the text, not the html.
Try this I haven't tested yet.
$html = file_get_contents("http://127.0.0.1/name.php?name=Lary");
$text = strip_tags($html);
echo ($text);
More info here: strip_tags