我正確運行這個PHP文件,它昨天顯示在瀏覽器上,但今天,突然間,我無法看到文件正確,也無法通過瀏覽器在源代碼中找到代碼。PHP頁面沒有顯示在瀏覽器上,看不到源代碼
此外,這是我以下教程: https://www.youtube.com/watch?v=hAkKC8DKN9A
這裏是代碼:
<?php
error_reporting(E_ALL^E_NOTICE);
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Member System - Log In</title>
</head>
<body>
<?php
$form = "<form action='./login.php' method='post'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='loginbtn' value='Login' /></td>
</tr>
</table>
</form>";
if ($_POST['loginbtn']) {
$user = $_POST['user'];
$password = $_POST['password'];
if ($user) {
if ($password) {
require("connect.php");
password = md5 (md5("kjfiufj".$password."Fjf56fj"));
echo "$password";
$query = mysql_query("");
mysql_close();
}
else
echo "You must enter your password. $form";
}
else
echo "You must enter your username. $form";
}
else
echo $form;
?>
</body>
</html>
此代碼完全不安全,可作爲現場使用 –