Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/01/2012, 17:45
webankenovi
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Include con variable por parametro

Cita:
Iniciado por ramiro_md Ver Mensaje
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";
Código PHP:
Ver original
  1. $absPath = ($_SERVER['SERVER_NAME'] == "localhost") ? "/web2.0" : "manantiales.edu.ar/web2.0";