0
My IP grabber not compiling at SoloLesrn
this is code but it isnt compiling here <?php // Do make a visitors.html file and set permission to 0777 $ip = $_SERVER['REMOTE_ADDR']; $browser = $_SERVER['HTTP_USER_AGENT']; $dateTime = date('Y/m/d G:i:s'); $file = "visitors.html"; $file = fopen($file, "a"); $data = "<pre><b>User IP</b>: $ip <b> Browser</b>: $browser <br>on Time : $dateTime <br></pre>"; fwrite($file, $data); fclose($file); echo "<h1>Hi n0.0b :)</h1>"; ?>
1 Réponse
+ 1
what output are you getting?