My IP grabber not compiling at SoloLesrn | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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>"; ?>

4th Apr 2018, 9:11 PM
Salar Khan
Salar Khan - avatar
1 Antwort
+ 1
what output are you getting?
11th Apr 2018, 11:35 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar