Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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