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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php