Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/01/2012, 16:58
Avatar de ramiro_md
ramiro_md
 
Fecha de Ingreso: septiembre-2008
Mensajes: 274
Antigüedad: 15 años, 8 meses
Puntos: 26
Respuesta: Include con variable por parametro

Cita:
Iniciado por webankenovi Ver Mensaje
y asi que tal

Código PHP:
Ver original
  1. $ruta='/web2.0/resources/config.conf.php';
  2. include_once($ruta);
Es que la ruta viene de un archivo de configuración. :(

Código PHP:
Ver original
  1. /* Directorio raiz del proyecto */
  2. $absPath = ($_SERVER['HTTP_HOST'] == "localhost") ? "http://localhost/web2.0" : "http://manantiales.edu.ar/web2.0";
  3. $confPath = "$absPath/resources/config.conf.php";