peppe193 Newbie


Registrato: 27-07-2003 Messaggi: 22
|
Inviato: 11-09-2003 23:56 Oggetto: Php6.0 su linux parte ma non gli piace una variabile. |
|
|
guarda questa linea di errore...si riferisce a una variabile
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /web/htdocs/www.snowfriends.it/home/mainfile.php on line 565
ti metto il codice che la genera:
function formatTimestamp($time) {
global $datetime, $locale;
setlocale ("LC_TIME", "$locale");
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}) [0-9]{1,2}) [0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
return($datetime);
ti ho messo in grassetto quello che non piace a linux...mi dice di utilizzare un LC_* -constants
chi ne sa qualcosa?
grazie a chiunque risponde
peppe |
|