-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.php
More file actions
38 lines (32 loc) · 881 Bytes
/
Copy pathdebug.php
File metadata and controls
38 lines (32 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo "<h2>Verificando archivos...</h2>";
// Verificar que existe index.php
if (file_exists('index.php')) {
echo "✓ index.php existe<br>";
echo "Tamaño: " . filesize('index.php') . " bytes<br>";
} else {
echo "✗ index.php NO existe<br>";
}
// Verificar que existe conexion.php
if (file_exists('includes/conexion.php')) {
echo "✓ includes/conexion.php existe<br>";
} else {
echo "✗ includes/conexion.php NO existe<br>";
}
echo "<h3>Intentando incluir index.php:</h3>";
// Capturar cualquier error al cargar index.php
ob_start();
try {
include 'index.php';
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
$output = ob_get_clean();
if (empty($output)) {
echo "No hay salida de index.php";
} else {
echo "Salida capturada:<br>" . htmlspecialchars($output);
}
?>