Files
edu/bbs/myclass/_back/_tmp_index_diag3.php

40 lines
1.2 KiB
PHP

<?php
/**
* _tmp_index_diag3.php — API 파일 내용 + main_data 구조 진단
*/
header('Content-Type: text/html; charset=utf-8');
echo '<h2>API 파일 내용 진단</h2>';
echo '<style>pre{background:#f5f5f5;padding:10px;font-size:11px;overflow:auto;white-space:pre-wrap;word-break:break-all;border:1px solid #ddd;max-height:600px} h3{margin-top:20px;color:#333}</style>';
$base = __DIR__;
$files = [
'api/videos_by_keywords.php',
'api/user_keywords.php',
'main_data.php',
'main_data_260316_1420.php',
'main_data_moon.php',
'../skin/index.php',
'../skin/index_over.php',
'../skin/index_moon.php',
'../skin/index_guide.php',
'../skin/_backup/index.php',
'../skin/_backup/keyword.php',
];
foreach ($files as $f) {
$full = realpath($base . '/' . $f);
echo "<h3>$f</h3>";
if (!$full || !file_exists($full)) {
echo '<p style="color:red">파일 없음 또는 접근 불가</p>';
continue;
}
$size = filesize($full);
if ($size === 0) {
echo '<p style="color:orange">파일 크기 0 (empty)</p>';
continue;
}
echo "<p>크기: {$size} bytes</p>";
echo '<pre>' . htmlspecialchars(file_get_contents($full)) . '</pre>';
}