Deathkiss Posted May 31, 2010 Report Posted May 31, 2010 (edited) servus am un computer conectat prin rds, deci pppoe. Cum as putea sa fac un script php care sa imi trimita intr-un mail ip-ul respectivului computer la fiecare bootare? un fel de return la "ifconfig"? Edited May 31, 2010 by begood ppoe != pppoe Quote
Xander Posted May 31, 2010 Report Posted May 31, 2010 <?phpexec("ifconfig | grep inet",$test);print_r( $test);?> Quote
loki Posted June 1, 2010 Report Posted June 1, 2010 (edited) e compul tau?de ce te complici? fa-ti un cont pe no-ip.info si ia-ti un subdomeniu de la ei si downloadeaza-le programul NO-IP DUC. Softul ruleaza in background si-ti actualizeaza subdomeniul in cateva minute. Poate fi setat ca proces ascuns.Iar tu nu mai ai treaba cu IP-ul ci cu panamea.no-ip.info de exemplu. Edited June 1, 2010 by loki Quote
Fitty Posted June 3, 2010 Report Posted June 3, 2010 Dar la SERVER_ADDR nu afiseaza IP de retea daca se afla intr-una? Mai bine urci un script php pe host free:<?php echo $_SERVER['REMOTE_ADDR']; ?>apoi in script-ul tau:$ip = file_get_contents('http://host.free.com/script_ip.php');Sau cURL... Quote