note 29568 added to function.setlocale

From: Date: Mon, 17 Feb 2003 21:56:42 +0000
Subject: note 29568 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-44112@lists.php.net to get a copy of this message
I get this error message in output: Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in C:\Apache2\htdocs\nuke\mainfile.php on line 564 Im using php 4.30. Any idea? Code: function formatTimestamp($time) global $datetime, $locale; setlocale ("LC_TIME", "$locale"); And there is more code,but i get in that case dont want add this note. -- http://www.php.net/manual/en/function.setlocale.php http://master.php.net/manage/user-notes.php?action=edit+29568 http://master.php.net/manage/user-notes.php?action=delete+29568 http://master.php.net/manage/user-notes.php?action=reject+29568

« previous php.notes (#44112) next »