Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/05/2008, 14:24
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: Guardar Nombre de PC (local) en una variable

Hola train564,

Prueba esto:
Código PHP:
$hostname explode("."gethostbyaddr($_SERVER['REMOTE_ADDR']));
echo 
$hostname[0]; 
Ten en cuenta que solo te servirá en una intranet y no en internet.

Saludos.