I want to extract data from another site's page.

Using Perl, I would do it like this ...
------------------------------------
use LWP::Simple qw(!head);
print get("http://ipid.shat.net/iponly/");
------------------------------------

What is the equivalent in PHP?

Thanks in advance.