I have the following:
$file1 = fopen("http://www.php.net/","r");
print $file1;
It prints: Resource ID #1;
What is wrong??? How do I read from the site?
Thanks,
| SitePoint Sponsor |
I have the following:
$file1 = fopen("http://www.php.net/","r");
print $file1;
It prints: Resource ID #1;
What is wrong??? How do I read from the site?
Thanks,
ssegraves [at] gmail.com
On Image Use, Abuse, and Where We're Headed
stephan | XMLHttpRequest Basics
flickr | last.fm | Cogentas, LLC



Just use include("http://www.php.net/");![]()

Hartmann, you need to implode the array.
$page = file("http://www.url.com");
$page = implode("", $page);
Bookmarks