i've juyst recently switched to a new server (with a newer version of PHP I believe) and now the following code is not working:
Code: Select all
$date=explode("-", $temp);
$date[0]=date('y',mktime(0,0,0,$date[1],$date[2],$date[0]));Warning: mktime() expects parameter 4 to be long, string given
I have tested the content of the variables:
Code: Select all
echo"$temp = $date[1] $date[2] $date[0]";2009-12-12 = 12 12 2009
Oddly only data[1] is reporting as a string and not data[0] or data[2].
Any ideas?
Thanks in advance,
Rob.