Jump to content
Deathkiss

script php pt pppoe

Recommended Posts

Posted (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 by begood
ppoe != pppoe
Posted (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 by loki
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...