Page 1 of 1
Read another webpage
Posted: Tue Jun 01, 2004 6:15 pm
by Steveo31
Searched with no results. Even on google
I would like to "synchronize" to another page, meaning I can pull some data off of a remote site (like php.net) and display it on my page. I've had little luck with fread()... it was limited in what it displayed.
Any ideas? Thanks.
Posted: Tue Jun 01, 2004 6:20 pm
by feyd
[php_man]curl[/php_man] may be an option.. what kind of trouble have you had with fread()? Are url wrappers turned on?
Posted: Wed Jun 02, 2004 3:20 am
by patrikG
Snoopy can retrieve and even post pretty much anything as well - if I remember correctly, it's a wrapper for Curl.
Posted: Wed Jun 02, 2004 11:17 am
by Steveo31
fread() just wouldn't read the whole page, even if I increased the filesize considerably. I've seen curl and heard of snoopy... maybe I'll take a look into it. Thanks

Posted: Wed Jun 02, 2004 11:40 am
by launchcode
Snoopy would be my weapon of choice here.. and you don't need curl for it to work (unless you need to get pages via HTTPS).
Posted: Thu Jun 03, 2004 6:09 am
by dave420
If you just want to read a remote website, file_get_contents("
http://www.google.com/") works remarkably well
