So you want the number of days since your site was created/went online, not the number of days your site has been online since the last server reboot, correct?
That's easy, and you're on the right track.
First of all, look up the mktime() and date() functions in the PHP documentation (http://www.php.net/manual/en/) to see exactly how they work and what options you might like to use with them.
Second, do something similar to the following (I'm going to assume that you created your website on January 1st, 2001 at midnight):
$creation = mktime(0,0,0,1,1,2001); // day site was created
$current = mktime(); // Today
// # of seconds from creation until today...
$num_secs = $current - $creation;
$num_days = floor($num_secs/86400);
// 86400 = (24hours/1day)(60min/1hour)(60sec/1min)
// Show Results
echo "My site has been up for $num_days days!";
Let me know if you have any problems.