salut! :rolleyes:
i've searched the forum for a script that detects the user's ip or browser, and the results are very confusing. so i decided to make my own, simply based on
$_SERVER['HTTP_USER_AGENT']
and
$_SERVER['REMOTE_ADDR']
<?php
$step_1 = $_SERVER['HTTP_USER_AGENT'];
$step_2 = array("(",")",";","/",".");
$step_3 = str_replace($step_2,"",$step_1);
$step_4 = explode(" ",$step_3);
$browser_type = $step_4[7];
$ip = $_SERVER['REMOTE_ADDR'];
echo "your browser: ".$browser_type;
echo "<br>";
echo "your ip: ".$ip;
?>
i hope it'll be helpfull... 🙁
if you have any suggestions, please write them. :o