Jump to content

[PHP] Afisare IP


SkiizO
 Share

Recommended Posts

Grad tutorial: incepator mediu avansat

 

Mai simplu de atat nu se poate.

<?php
//trecem in variabila $ip adresa IP a vizitatorului
$ip=$_SERVER['REMOTE_ADDR'];
//afisam variabila cu ajutorul functiei echo
echo "IP-ul tau este: <font color=red><b>".$ip."</b></font>";
?>

 

 

Voi continua si cu alte tutoriale!

Edited by SkiizO Capone
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.