Jump to content

PHP5: mktime() expects parameter to be long, string given?


amites

Recommended Posts

Quick question:

 

Had a site switched to PHP5.2 from 4.3 and now getting

 

 

Warning: mktime() expects parameter 1 to be long, string given in /home/praise1/public_html/Helios/events/components/paypal.php on line 433

 

$startTime = date($hc_timeFormat, mktime($timepart[0], $timepart[1], $timepart[2]));

 

Is there any way to keep the parameter as a variable?

used rather widely throughout the site would rather not replace everything...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.