The source of userdetails.php (click to demo the file) viewed 1342 times.

If I wrote this code, then it is licensed under the GPL. If someone else wrote it, then please ask them if you want to use the code.


<?php
    $ss_timing_start_times 
explode(' 'microtime());
?>

<? 
if ($HTTP_REFERER=="")
{
    
$referer "N/A";
}
else
{
    
$referer "<a href=$HTTP_REFERER target=_blank>$HTTP_REFERER</a>";
}
$r_hostname gethostbyaddr($REMOTE_ADDR); 
if (
$REMOTE_ADDR == "$r_hostname") { 
    
$r_hostname "$REMOTE_ADDR";

}
else
{
    
$r_hostname "$REMOTE_ADDR / $r_hostname";
}

echo 
"<font face=Arial size=1><b>Your IP / host:</b> $r_hostname<br><b>Your Port No:</b> $REMOTE_PORT<br><b>Your Referer:</b> $referer<br><b>Your Browser & OS:</b> $HTTP_USER_AGENT</font>";
?>

<br><br>

<?php
$time 
date("F jS Y, h:iA"); //using the date() function 
echo "<font face=Arial size=1><b>Server Time:</b> $time<br><b>Server IP / name:</b> $SERVER_ADDR / $SERVER_NAME<br><b>Server Software:</b> $SERVER_SOFTWARE<br>Page made in: ";
?> 

<?php

    
if (!isset($ss_timing_start_times)) {
        
    }
    if (!isset(
$ss_timing_stop_times)) {
        
$stop_time explode(' 'microtime());
    }
    else {
        
$stop_time $ss_timing_stop_times;
    }
    
// do the big numbers first so the small ones aren't lost
    
$current $stop_time[1] - $ss_timing_start_times[1];
    
$current += $stop_time[0] - $ss_timing_start_times[0];
    echo 
round($current,4);
    echo 
" secs</font>";
    

?>

If you want to have a look at the source code, chose a file from this list:

ip.txt
(Demo Script)
userdetails.php
(Demo Script)
perl_smtp_email.php
(Demo Script)
server_mon.php
(Demo Script)
floor_time.php
(Demo Script)
url_verify.php
(Demo Script)
birthday.php
(Demo Script)
md5_password.php
(Demo Script)
email.php
(Demo Script)
char_limit.php
(Demo Script)
time.php
(Demo Script)
htpasswd_maker.php
(Demo Script)
title_case.php
(Demo Script)
password.php
(Demo Script)
phpself.php
(Demo Script)
smarty.php
(Demo Script)
phpinfo.php
(Demo Script)
ip_monitor.php
(Demo Script)
html.php
(Demo Script)
pad_test.php
(Demo Script)
mysql_backup.php
(Demo Script)
cookies.php
(Demo Script)
unix_time.php
(Demo Script)
convert_link.php
(Demo Script)

To colour code your own PHP paste it here: