(09-04-2011, 12:17 PM)FritoBandito Wrote: Actually, The time() function in PHP grabs the time of the server it is hosted on. In this case, it is showing 3:15 pm for me because the server is hosted in the eastern time zone while I am in the Central time zone. It is a good start to learn PHP.
Getting the persons IP address is also quite simple. 2 Lines of code can simple get your IP address and display it:
Code:<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo $ip;
?>
Basic as that. But i do like the skull head btw
The "skull head" is the troll face, how didn't you know that?
Also you can cut that down to one line as I did.
PHP Code:
<?php
echo $_SERVER['REMOTE_ADDR'];
?>