RE: Retrieving web pages
| From: | Jeff Schwartz | Date: | Sat, 03 May 2003 16:15:01 +0000 |
| Subject: | RE: Retrieving web pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146280@lists.php.net to get a copy of this message | ||
Mark -
I use cURL for that: http://www.php.net/manual/en/ref.curl.php
http://curl.haxx.se
Jeff
>I'm trying to figure out a way of retrieving the contents of web pages with
>PHP. Currently I'm using the sockets example from php's site -
>http://www.php.net/manual/en/ref.sockets.php - I've
>modified the "one-shot
>HTTP client" so that instead of just a head request it does a get. However,
>with this method I get the headers as well as the page content. Help either
>in stripping the headers, or using a different method to load page contents
>would be greatly appreciated. Note that I don't want to just display the
>contents, I want to be able to store it in a variable, or ultimately, a BLOB
>column in a MySQL column.
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.