Thread: IP Tracker / Hostname / loggers embedded into HTML code?
hello,
interested know how make possible log ip address + hostname , provider, of persons opens index.html.
possible? php works, tried once site. in present case shoudl embedded html code
rather use php java. php nice, universal, know bit of it, , guess adapted challenge...
welcome
(1) first issue: ok if use:
test.php
then works. displays ip address.code:<?php $ip = $_server['remote_addr']; $pagina = $_server['request_uri']; $datum = date("d-m-y / h:i:s"); $invoegen = $datum . " - " . $ip . " - " . $pagina . "<br />"; $fopen = fopen("ips.html", "a"); fwrite($fopen, $invoegen); fclose($fopen); ?>
how hostname + provider internet url?
(2) second issue: how implement lines test.html page?
test.html
code:<!doctype html public "-//w3c//dtd html 4.01 transitional//en"> <html><head> hello <br> <------- cannot put here content of test.php??? </head></html>
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk IP Tracker / Hostname / loggers embedded into HTML code?
Ubuntu
Comments
Post a Comment