Retrieving web pages

From: Date: Fri, 02 May 2003 21:31:53 +0000
Subject: Retrieving web pages
Groups: php.general 
Request: Send a blank email to php-general+get-146206@lists.php.net to get a copy of this message
Hi, 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. tia, Mark

« previous php.general (#146206) next »