as per Chapter 19:Using remote files:
As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter.
my server is enabled : ON
however, using this...nothing happens.... except for a super long delay and the message :
Resource ID #1
I dont get the "Unable to open remote file"
any thoughts?
<?php
$file = fopen ("http://www.xxxx.com/xxx/xxx/jobsviewall.php", "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);
?>