shadiadiph Posted February 16, 2009 Share Posted February 16, 2009 I have just changed my site to another server and am getting the following error displayed on numerous pages. Warning: mktime() expects parameter 6 to be long, string given in /home/secure/webadmin/mails/track_emails.php on line 179 page is diplaying fine except the error message? the code that is causing it is here $date = explode("-","$sent"); $newsentdate = strftime("%d-%m-%Y",mktime(0,0,0,$date[1],$date[2],$date[0])); if ($viewed==$viewed) { $date1 = explode("-","$viewed"); $newvieweddate = strftime("%d-%m-%Y",mktime(0,0,0,$date1[1],$date1[2],$date1[0])); Link to comment https://forums.phpfreaks.com/topic/145386-solved-mktime-problem/ Share on other sites More sharing options...
shadiadiph Posted February 16, 2009 Author Share Posted February 16, 2009 ok no problem solved it Link to comment https://forums.phpfreaks.com/topic/145386-solved-mktime-problem/#findComment-763244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.