scrivi così

Codice PHP:
<?php 
$data 
date("Y-m-d");
$differenza = (strtotime($data) - strtotime("2004-11-17"))/(86400); 
echo 
$differenza;
?>