Preparando proyecto para migración a repositorio MVE
This commit is contained in:
22
app/controllers/debug_paths.php
Normal file
22
app/controllers/debug_paths.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// Debug para ver rutas
|
||||
echo "<h3>Información de rutas del servidor:</h3>";
|
||||
echo "<p><strong>DOCUMENT_ROOT:</strong> " . $_SERVER['DOCUMENT_ROOT'] . "</p>";
|
||||
echo "<p><strong>SCRIPT_NAME:</strong> " . $_SERVER['SCRIPT_NAME'] . "</p>";
|
||||
echo "<p><strong>REQUEST_URI:</strong> " . $_SERVER['REQUEST_URI'] . "</p>";
|
||||
echo "<p><strong>HTTP_HOST:</strong> " . $_SERVER['HTTP_HOST'] . "</p>";
|
||||
echo "<p><strong>__FILE__:</strong> " . __FILE__ . "</p>";
|
||||
echo "<p><strong>__DIR__:</strong> " . __DIR__ . "</p>";
|
||||
|
||||
// Verificar si los archivos existen
|
||||
$test_file = __DIR__ . '/test_connection.php';
|
||||
$import_file = __DIR__ . '/importar_pedimentos.php';
|
||||
|
||||
echo "<h3>Verificación de archivos:</h3>";
|
||||
echo "<p><strong>test_connection.php:</strong> " . (file_exists($test_file) ? '✅ Existe' : '❌ No existe') . "</p>";
|
||||
echo "<p><strong>importar_pedimentos.php:</strong> " . (file_exists($import_file) ? '✅ Existe' : '❌ No existe') . "</p>";
|
||||
|
||||
echo "<h3>URLs sugeridas:</h3>";
|
||||
$base_url = "http" . (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "s" : "") . "://" . $_SERVER["HTTP_HOST"];
|
||||
echo "<p><strong>Test URL:</strong> <a href='{$base_url}/IMPORTADORES/app/controllers/test_connection.php' target='_blank'>{$base_url}/IMPORTADORES/app/controllers/test_connection.php</a></p>";
|
||||
?>
|
||||
Reference in New Issue
Block a user