Ver Mensaje Individual
  #15 (permalink)  
Antiguo 06/10/2012, 21:31
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: Novato en php con problemas al instalar aplicación

Cita:
Hice lo que indicas y sigue dando error



( ! ) Notice: Undefined variable: ruta_base in C:\wamp\www\agora\instalador\install.php on line 6
el error cambio! eso es un buen signo de que vamos bien,
tus rutas son:
C:\wamp\www\agora\instalador\install.php
C:\wamp\www\agora\config\config.php

entonces pon esto:

install.php:
Código PHP:
Ver original
  1. <?php
  2.  
  3. /**************************************************
  4. * VALIDAMOS LA EXISTENCIA DEL ARCHIVO config.php *
  5. **************************************************/
  6. $ruta_config = "../config/config.php";//ponemos la ruta directamente por eso te pregunte donde estaba
  7. $existe_config = file_exists($ruta_config);
  8.  
  9. if ($existe_config)
  10. {
  11. require("../config/config.php");
  12. require ("$funciones_php");
  13. require ("$cabeceras_php");
  14. require ("$errores_php");
  15. pinta_head_install();
  16. pinta_cabecera_install($menu_principal,$servicio,$ id_sesion);
  17. ?>
  18. <form name="frm_install" action="" method="POST" enctype="multipart/form-data">
  19. <center>
  20. <br>
  21. <table width="60%" cellpadding=15 cellspacing=5 border=10>
  22. <tr>
  23. <td width="100%" class="texto"><center><h3><b>Instalación del Sistema Agora</b></h3></center>
  24. Verifique si los siguientes datos son correctos:<br><br>
  25. <table width="100%" border="1">
  26. <tr>
  27. <td class="texto"><b><center>Nombre</center></b></td>
  28. <td class="texto"><b><center>Variable</center></b></td>
  29. <td class="texto"><b><center>Valor</center></b></td>
  30. </tr>
  31. <tr>
  32. <td class="texto">Servidor</td>
  33. <td class="texto">$host</td>
  34. <td class="texto"><?phpecho $host?></td>
  35. </tr>
  36. <tr>
  37. <td class="texto">Usuario de Base de datos</td>
  38. <td class="texto">$usuario_bd</td>
  39. <td class="texto"><?phpecho $usuario_bd?></td>
  40. </tr>
  41. <tr>
  42. <td class="texto">Password usuario de BD</td>
  43. <td class="texto">$pass_bd</td>
  44. <td class="texto"><?phpecho $pass_bd?></td>
  45. </tr>
  46. <tr>
  47. <td class="texto">Esquema de Bd</td>
  48. <td class="texto">$database</td>
  49. <td class="texto"><?phpecho $database?></td>
  50. </tr>
  51. <tr>
  52. <td class="texto">Usuario administrador</td>
  53. <td class="texto">$usu_admin</td>
  54. <td class="texto"><?phpecho $usu_admin?></td>
  55. </tr>
  56. <tr>
  57. <td class="texto">Password usuario administrador</td>
  58. <td class="texto">$pass_admin</td>
  59. <td class="texto"><?phpecho $pass_admin?></td>
  60. </tr>
  61. </table>
  62. <br><br>
  63. Ingrese la contraseña del usuario administrador del MySQL <b>(root)</b> para crear la instancia<br>
  64. y las tablas del sistema:
  65. <br><br><br>
  66. Contraseña del root: <input type="password" name="pass">
  67. <br><br>
  68. <center>
  69. <input type="button" value="Crear" Onclick="fSubmitIns(document.frm_install,'ejecuta. php')">
  70. </center>
  71. </td>
  72. </tr>
  73. </table>
  74.  
  75. </center>
  76. </form>
  77. <?php
  78. }else
  79. {
  80. ?>
  81. <br> <br>
  82. <br> <br>
  83. <input type="hidden" name="datos_ins" value="">
  84. <center>
  85. <br>
  86. <table width="60%" cellpadding=15 cellspacing=5 border=10>
  87. <tr>
  88. <td width="100%" class="texto"><center><h3><b>Instalación del Sistema Agora</b></h3></center><br>
  89. <br>
  90. <center><B>SE PRODUJO UN ERROR</B><BR><BR> No se encuentra el archivo de configuración /config/config.php</center>
  91. <br><br>
  92. </td>
  93. </tr>
  94. </table>
  95. </center>
  96. <?php
  97. }
  98. ?>
  99. </body>
  100. </html>
y con eso deberia andar mi colega, igualmente te recomiendo desactivar las notificaciones del servidor por lo menos para instalarlo.
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios