Re: How do I grab the contents of a web page?

From: Date: Fri, 21 May 2004 03:48:08 +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-186654@lists.php.net to get a copy of this message
On Thursday, May 20, 2004, at 06:42 PM, Brian Dunning wrote:
On May 20, 2004, at 5:43 PM, raditha dissanayake wrote:
I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable?
Never mind, I found it: $string = get_file_contents('www.123.com'); - Brian
You probably mean... $string = file_get_contents("http://www.123.com"); (The protocol bit is important too.) ...Rene

« previous php.general (#186654) next »