Jump to content
xander22

Script PHP care sa afle la un IP Browserul si OSul

Recommended Posts

Posted (edited)

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
Posted (edited)

<?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
Posted
1 hour ago, redcoder said:

Ma-ta te poate ajuta, mars la invatat nu cere mila, invata sa expui problema altfel tentativa de programator ce esti.

 

Vorbea metin2hack :(

Posted

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..

Guest
This topic is now closed to further replies.


×
×
  • Create New...