Maison > Article > développement back-end > THINKPHP网站登录页在本地测试可以通常登录,在服务器却无法正常跳转
THINKPHP网站登录页在本地测试可以正常登录,在服务器却无法正常跳转
为什么我的网站登录页在本地测试可以正常登录,在服务器却无法正常跳转呢?
<br /><form action="{:U('Login/login')}" method="post"><br /> <ul><br /> <li><img src="__PUBLIC__/frontend/images/login_name_bg.gif" alt="" title="用户名"/><br /> <input type="text" class="denglu_srk" placeholder="用户名/邮箱/手机号" value="<?php echo $_COOKIE['username'];?>" name="name" style="max-width:90%"/><br /> </li><br /> <li><img src="__PUBLIC__/frontend/images/login_password_bg.gif" alt="" title="密码"/><br /> <input type="password" class="denglu_srk" placeholder="密码" onpaste="return false" name="pass" id="pass_id" style="max-width:90%"/><br /> </li><br /> <?php if($_SESSION['login_time']>=3):?><br /> <li><input placeholder="输入验证码" class="yanzhengma" name="verify"/><img class="verify-code" src="{:U('Register/verify')}" onClick="click_change(this)" style="max-width:90%" title="验证码"/ alt="THINKPHP网站登录页在本地测试可以通常登录,在服务器却无法正常跳转" ><b id="verify1"></b></li><br /> <?php endif;?><br /> </ul><br /> <p><a href="{:U('FindPass/email')}">忘记密码?</a><a href="{:U('Register/index')}">免费注册</a></p><br /> <div class="denglu_but_con"><input class="denglu_but" type="submit" value=" "/></div><br /> </form><br />
$url = 'http://www.onloan.com.cn/usercontent-index.html';<br />print_r(get_headers($url));<br />echo file_get_contents($url);
Array<br />(<br /> [0] => HTTP/1.1 200 OK<br /> [1] => Date: Sun, 05 Oct 2014 05:57:52 GMT<br /> [2] => Content-Type: text/html<br /> [3] => Content-Length: 265<br /> [4] => Connection: close<br /> [5] => Server: nginx/1.0.15<br /> [6] => X-Powered-By: PHP/5.2.17p1<br />)<br /><head><br /><meta property="qc:admins" content="147026777767647166375636" /><br /><meta property="qc:admins" content="4716300527622221636375" /><br /><meta property="qc:admins" content="471630043674556654" /><br /></head><br /><br /><br /><meta http-equiv='Refresh' content='0;URL=/login-index.html'><br />