原来我V7网站出售的友情连接的自动连接在首页index.php内加入
//520link自动连接
$linkurl = "http://www.520link.com/order/sle?nam=souchangw&url=http://www.souchangw.com&type=2&css=&lei1=php";
$contents = file_get_contents($linkurl);
$contents = iconv("utf-8", "gb2312",$contents);
$contents = "$contents";
并在首页模板内需要加入友连的地方填 $contents就行了。现在X1我安装了友连插件,并在link.php加入那段代码,在需要友连的地方加入$contents完全没反应,这样做不行了。请教了
你这样处理 吧
把下面的代码放到模板里
{php} $linkurl = "http://www.520link.com/order/sle?nam=souchangw&url=http://www.souchangw.com&type=2&css=&lei1=php"; $contents = file_get_contents($linkurl); $contents = iconv("utf-8", "gb2312",$contents); echo "$contents"; {/php}