>Hola buenas,

Hola.. :-)

>       Estoy programando en PHP en mi sarge 

PHP es un gran y robusto lenguaje, ponle mucho empe�o. Veras que no es  muy
dif�cil.

> y necesito saber como se puede
>saber el nombre de mi host


<?php
$salida = shell_exec('cat /etc/hostname');
echo "$salida";
?>

Puede ser la soluci�n para ti..

Mas informaci�n [1].

[1] http://cl.php.net/manual/es/function.shell-exec.php

>Gracias!
>Un saludo!


De nada
Salu2.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]

Responder a