Good day, and thank you in advance for any suggestions. I have used the following line of code to split a date into three component parts - MM, DD and YYYY - list($month, $day, $year) = split('[/.-]', $fdate); And then I use mktime() - $tsfrom = mktime(0, 0, 1, "$month", "$day", "$year"); //Represent the "From Date" in a timestamp I wrote this for use on PHP 4 and it has worked fine. Last week, my host switched me to a new server running PHP 5. Now, it seems that the list() function no longer works. I get the following error - mktime() expects parameter 4 to be long, string given, then the line number I've experimented with this and it seems that I can no longer print the value of any of the three variables. I used to be able to do so. I've fiddled with punctuation, gone from no quotes to double quotes and back, but no luck. Can anyone give me a hand with this? Having searched this site and others, I don't see anything that's right on point. Thank you for your help. Steve E.
Thank you...I had another look. The value of $fdate comes to this script in a $_POST variable. I have to change how I obtain and use that value. Register_globals is off on the new server so the old code that obtains that value is probably to blame. I'll work with that today. Thank you again. Steve E.