如何将一个页面定义成一个变量存放到数据库
$tt="http://*.*/index.php";
include "config.php";
$db=conndb();
$SQL="insert into news set content='".$tt."'";
mysql_select_db($database,$db);
mysql_query($SQL) or die(mysql_error());
而用$tt=file_get_contents("http://*.*/index.php"); 这样就得到所有相同的信息了,因为index.php网页可以从不同的ip地址得到不同的信息,请问这样的话,如何才能保存不同的信息。