algarve4me Posted June 16, 2007 Share Posted June 16, 2007 The function below is throwing an error since I upgraded from php4.3.9 to php5.2. Any ideas what I need to do to get this function working again. ERROR(2) mktime() expects parameter 1 to be long, string given <? function mkActiveTime($hr,$min,$sec,$month=false,$day=false,$year=false){ if (function_exists("adodb_mktime")) return adodb_mktime($hr,$min,$sec,$month,$day,$year); else return mktime($hr,$min,$sec,$month,$day,$year); } ?> The code is from the activecalendar script. Full source code available here http://georgiost.users.phpclasses.org/browse/file/7370.html Quote Link to comment https://forums.phpfreaks.com/topic/55869-mktime-problem-after-upgrade-to-php52/ Share on other sites More sharing options...
Psycho Posted June 16, 2007 Share Posted June 16, 2007 Well, according to the error there is a problem with the first parameter. What does $hr equal? Quote Link to comment https://forums.phpfreaks.com/topic/55869-mktime-problem-after-upgrade-to-php52/#findComment-276057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.