Jump to content

Date and IP Log


Hooo

Recommended Posts

NOT TESTED!

<?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);
?>

 

Dan had je het wel even in het engels kunnen zetten ;)

Link to comment
https://forums.phpfreaks.com/topic/172194-date-and-ip-log/#findComment-907909
Share on other sites

Besides if you are using work from someone else shouldn't you need to be crediting them?

 

$ip = $_SERVER['REMOTE_ADDR;']; //Code provided by Ignace
echo "Your IP is: $ip";

 

You don't need to credit my work everything I do is open-source ;) But I wonder what happens if someone would post code that is copyright protected? The forum won't be held responsible so the poster is? Oh my!

Link to comment
https://forums.phpfreaks.com/topic/172194-date-and-ip-log/#findComment-908193
Share on other sites

Besides if you are using work from someone else shouldn't you need to be crediting them?

 

$ip = $_SERVER['REMOTE_ADDR;']; //Code provided by Ignace
echo "Your IP is: $ip";

 

You don't need to credit my work everything I do is open-source ;) But I wonder what happens if someone would post code that is copyright protected? The forum won't be held responsible so the poster is? Oh my!

Copyrighted code does not need credit, as it's illegal to copy it in the first place?

Link to comment
https://forums.phpfreaks.com/topic/172194-date-and-ip-log/#findComment-908198
Share on other sites

as it's illegal to copy it in the first place?

 

I wasn't anymore referring to adding a copyright notice. But it just hit me to what would happen if they would? Like for example material they bought and provided source code from that material.

Link to comment
https://forums.phpfreaks.com/topic/172194-date-and-ip-log/#findComment-908201
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.