I am trying to print out elements of file(), but can't seem to get file() to get a URL correctly.
I have the code:
$info = file ('http://www.yahoo.com');
for ($b = 1; $b <= 10; $b++) {
echo $info[$b];
echo "array element $info[$b]";
echo $info[$b];
}
the results are that $info[$b] does not print out anything.
If anyone could give me some suggestions, I'd really appreciate it.
Thanks