Deathkiss Posted May 31, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Xander Posted May 31, 2010 Report Share Posted May 31, 2010 <?phpexec("ifconfig | grep inet",$test);print_r( $test);?> Quote Link to comment Share on other sites More sharing options...
Nytro Posted May 31, 2010 Report Share Posted May 31, 2010 $_server['server_addr'] ? Quote Link to comment Share on other sites More sharing options...
loki Posted June 1, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Deathkiss Posted June 1, 2010 Author Report Share Posted June 1, 2010 mersi frumos Quote Link to comment Share on other sites More sharing options...
Fitty Posted June 3, 2010 Report Share 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 Link to comment Share on other sites More sharing options...