Jump to content
xander22

Script PHP care sa afle la un IP Browserul si OSul

Recommended Posts

cine ma poate ajuta cu un script in php care in momentul cand cineva imi da submit la un form sa ii puna ip-u; numle la OS  si Browser intr un fisiet txt

Excemplu:

MY ip 75.129.64.30

OS: Win8.0

Browser : Firefox 46.0

 

 

 

Edited by xander22
Link to comment
Share on other sites

<?php 
$handle = fopen("log.md", "a");  fwrite($handle, 'REMOTE IP: ' . $_SERVER['REMOTE_ADDR'] . PHP_EOL); fwrite($handle, "\r\n"); fwrite($handle, 'Browser: ' . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL);

fwrite($handle, "\r\n"); fclose($handle); exit; ?> 

 

Iar unde ai formularul pui asta

<form method="GET" action="log.php" id="log_form" onsubmit="return Event.__inlineSubmit(this,event)">

Edited by sandu69
Link to comment
Share on other sites

Bre @redcoder esti intr-o stare de continua frustrare si irascibilitate (is that a word?). Take a chill pill! Spune-mi in ce zona stai si iti caut o femeie (sau baietel, #ImNotJudging :-") sa te futa pana te indoaie, sa vezi ce bine te simti apoi. Gizas.. as sucomba de la atata frustrare in mine..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...