<pre>
var_dump(file_get_contents(url));
</pre>
и это не единственный грех
давно я не встречал echo в функции