Re: How do I grab the contents of a web page?
| From: | Richard Davey | Date: | Fri, 21 May 2004 00:39:52 +0000 |
| Subject: | Re: How do I grab the contents of a web page? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186644@lists.php.net to get a copy of this message | ||
Hello Brian,
Friday, May 21, 2004, 1:19:19 AM, you wrote:
BD> I'm sure there's a really simple way to do this: how can I grab the
BD> source code of a specified web page and store it in a variable? Is
BD> there something like this:
BD> $siteCode = functionI'mLookingFor('www.123.com/index.htm');
If you're talking about the resulting HTML code then there are a
variety of ways - look in the manual at the fopen() examples.
--
Best regards,
Richard Davey
http://www.launchcode.co.uk / PHP Development Services
http://www.phpcommunity.org/wiki/296.html /
PHP Community