I've got a webpage that display this : http://i.imgur.com/QUkMoiC.jpg
Just plain text. And I need to include this in another php webpage, like
$string = include('http://220.127.116.11:4032/currentsong?sid=1');
Include will evaluate what's inside the specified file (And run it as PHP). For example, if you had:
$str = 'King crimson - Moonchild - Lyrics';
You could include it, and then echo
$str to get what you are looking for.
I think what you're looking for is
$string = file_get_contents('http://18.104.22.168:4032/currentsong?sid=1'); echo $string;
From the docs:
file_get_contents() is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance.