Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/lanssoft/public_html/smith/test2.php on line 4
Warning: fsockopen(): unable to connect to https://ssl.clickbank.net/z/cbank/1.cgi?ii=34313234343665616e627130676e377a2e302e64616e69656c2e3032372e31323935&s=&&er=F&ct=m&cm=05&cb=&c1=&c2=&cy=2006&cn=5324289831537011&cv=232&nn=ZSDF_A&em=ZADFASF@DF.NET&ic=CN&zc=323323&t=Gibbleguts_Screensaver_Pack&c=yxztx87z&js=1:443 in /home/lanssoft/public_html/smith/test2.php on line 4
Permission denied (13)
<?php
$file = fopen ("http://www.example.com/", "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
/* This only works if the title and its tags are on one line */
if (eregi ("<title>(.*)</title>", $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
?>