高手求救! /index_1,index_2,index_3$index = "index_".rand(10)."html";header("Location:$index"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 index.php为服务器默认的首页index1.php为想显示的首页1index2.php为想显示的首页2<?php//index.phpif(登录){ echo "<script>window.location =\"index1.php\";</script>"; }else{ echo "<script>window.location =\"index2.php\";</script>"; }?> srand($ab);$ab = mt_rand(1,2);$index=......;header("Location: ./$index"); php中构造函数对变量的引用怎么没有值啊? zendstudio for eclipse服务器相关配置 ini_set("include_path",ini_get("include_path").": /path/to/pear"); 有一段代码,想用C#来表示,主要是数组问题 请教多选列表的传值问题?? javascript中能这样调用PHP变量值吗 真是急死人了,怎样在js里调用PHP的结果呢? 问个问题,谢谢各位 ImageTTFText为何显示为汉字乱码,我需要注意什么才可以避免呢, memcache有图形化管理工具吗 请教高手!!!! 为何时间戳不能转换?
index2.php为想显示的首页2<?php
//index.php
if(登录){
echo "<script>window.location =\"index1.php\";</script>";
}else{
echo "<script>window.location =\"index2.php\";</script>";
}
?>
$ab = mt_rand(1,2);
$index=......;
header("Location: ./$index");