Non vorrei essere scortese, ma ottengo questo:
inserendo questa riga:codice:Notice: A non well formed numeric value encountered in /var/www/html/Tesi/pages/home.php on line 23 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/Tesi/pages/home.php on line 23 ULTIMO ACCESSO:01-01-1970 00:33:32 print "ULTIMO ACCESSO:".$ultacc= date("d-m-Y H:i:s" );Mentre sul sito di php.net ho trovato questo ed ho modificato così:codice:print "ULTIMO ACCESSO:".date('d-m-Y H:i:s', $ultacc);
Anche qui ottengo degli allert, cioè:codice:print "ULTIMO ACCESSO:".$ultacc= date("d-m-Y H:i:s" );
Ma la data è correttamente formattata, mentre nel suo metodo mi riporta ULTIMO ACCESSO:01-01-1970 00:33:32 più altri refusi.codice:Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/Tesi/pages/home.php on line 23 ULTIMO ACCESSO:05-07-2012 14:54:03

Rispondi quotando