摘要: 1 <?php 2 try { 3 $dsn = "mysql:host=localhost;dbname=数据库名"; 4 $username = "数据库名"; 5 $password = "数据库密码"; 6 $pdo = new PDO($dsn, $username, $password) 阅读全文
posted @ 2023-09-02 21:19 瑆箫 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 error_reporting(0); 3 //if($_COOKIE["ck"])die("刷新过快!"); 4 if($_COOKIE["ck"])header("Location:https://www.geh3408.top/");//这里如果用户刷新过快,给予终止php 阅读全文
posted @ 2023-09-02 21:17 瑆箫 阅读(24) 评论(0) 推荐(0) 编辑