put result of "include" into a variable
| From: | Patrick Anderson at TUE | Date: | Fri, 22 Nov 2002 22:36:25 +0000 |
| Subject: | put result of "include" into a variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-125683@lists.php.net to get a copy of this message | ||
Hi,
For some (strange, I know) reason I would like to copy the content of a
webpage into a database.
I would like to have code like
$whocares = include ("http://www.microsoft.nl");
$query = "insert into html values ($whocares,...)";
..
However, include can not copy the content to a variable. Does anyone
have an idea how to circumvent this problem?
Thanks,
Patrick