I am trying to install an application on my server but I am getting this error message.
Fatal error: Cannot redeclare unixdate() in /home/patna/public_html/domain/common/lib/adodb.inc.php on line 1219
I have looked at the code but could not figure out the problem. Can anyone help me resolve this problem? I have listed the code below.
/**
Also in ADORecordSet.
@ $v is a date string in YYYY-MM-DD format
@return date in unix timestamp format, or 0 if before 1970, or false if invalid date format
*/
function UnixDate($v)
{
if (!preg_match( "|([0-9]{4})[-/.]?([0-9]{1,2})[-/.]?([0-9]{1,2})$|",
($v), $rr)) return false;
if ($rr[1] <= 1970) return 0;
// h-m-s-MM-DD-YY
return mktime(0,0,0,$rr[2],$rr[3],$rr[1]);
}
Thanks
Burhan Tanweer
http://www.shop8now.com/tax