Include a web page in a variable

From: Date: Tue, 09 Jan 2001 00:19:41 +0000
Subject: Include a web page in a variable
Groups: php.general 
Request: Send a blank email to php-general+get-33356@lists.php.net to get a copy of this message
Hi, Propably a really easy and lame question but I'll shoot anyhow: What's the easiest and cleanest way to include the contents of a webpage into a variable? Kinda like this but with the actuall content of the web page in the var except for the staus code or doc size or whatever this results in. $html = include("http://www.slashdot.org/"); Thanks! Nicklas

« previous php.general (#33356) next »