/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * This function generates a fake number that starts small but gets * bigger as time goes by. (This is the gheyest function I ever wrote.) */ function generate_fake_count() { // Set starting time and date to date site was launched (unix timestamp). $start_time = 1296842335; // Get current time from server. // Subtract start_time from current_time to create our fake number. $fake_count = $current_time - $start_time; // Pad with a bunch of zeros. $fake_count = '0000000000' . $fake_count; // Reverse the string. // Grab the first 8 characters. // Reverse the number back again. // Return our new fake count return $fake_count; } ?>