Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/05/2012, 09:41
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: ¿Cómo saber si un proyecto está en localhost o en un dominio?

Prueba $_SERVER['DOCUMENT_ROOT'] y $_SERVER['HTTP_HOST'].

Saludos.