Hi
I am in a B-I-G trouble now. And looking for help/guidance.
I was running a freeware PHP script (CMS) for my website. Earlier the PHP Version was 4.06 (!) and it was working fine.
Now, the PHP program of my web server is upgraded into PHP 4.3 and the CMS is giving trouble.. specially with "setlocal" strings.
can anyone pls help me modifying my codes?
Regards,
Babul Gogoi
xguy2k@yahoo.com
the error message is like:==============
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/asmorg/public_html/links.php on line 428
here's part of the links.php==================
echo "<span class=\"searchprops\">Description: </span>$description<br />";
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("%d-%b-%Y", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "<span class=\"searchprops\">Added on: </span>$datetime Hits: $hits<br />";
$result2=mysql_query("select title from links_categories where cid=$cid");
list($ctitle) = mysql_fetch_row($result2);
echo "<span class=\"searchprops\">Category: </span>$ctitle";
$result3=mysql_query("select title from links_subcategories where sid=$sid");
while(list($stitle) = mysql_fetch_row($result3)) {
echo " / $stitle";
}
echo "<br /><br />";
}
echo "</td></tr></table>";