如果是非正常URL则显示404并退出if $s === rt_log_errorbad guy short_url $short_url; headerlocation user_pushphp; echo 404; echo br; echo a href=indexphp 点这里返回首页a; echo 404; exit;上面这段代码每行什么意思
// 如果是非正常URL,则显示404并退出
if ($s === '') {
rt_log_error('bad guy short_url: '.$short_url);
//header('location: user_push.php');
echo '404'; // 输出404
echo "
"; // 输出换行
echo "点这里返回首页"; // 输出带有链接的文本,用于返回首页
//echo '404.';
exit; // 退出程序
}
原文地址: https://www.cveoy.top/t/topic/hTF5 著作权归作者所有。请勿转载和采集!