ctcp Posted March 8, 2011 Share Posted March 8, 2011 PHP Version 4.4.9 Fatal error: Call to undefined function: date_default_timezone_set() in /hsphere/local/home/xxxxx/addfeeds2.php on line 11 can sombady help me how to fix this please? can't upgrade php version line 11 is date_default_timezone_set("Europe/Rome"); Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/ Share on other sites More sharing options...
HuggieBear Posted March 8, 2011 Share Posted March 8, 2011 No, your version is too old. From the manual: date_default_timezone_set (PHP 5 >= 5.1.0) Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/#findComment-1184690 Share on other sites More sharing options...
ctcp Posted March 8, 2011 Author Share Posted March 8, 2011 Thanks for replay but i found this putenv("TZ=Europe/Rome"); Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/#findComment-1184695 Share on other sites More sharing options...
HuggieBear Posted March 8, 2011 Share Posted March 8, 2011 That's not doing the same thing, it's setting an environment variable. Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/#findComment-1184700 Share on other sites More sharing options...
ctcp Posted March 8, 2011 Author Share Posted March 8, 2011 i think i need to change host.. thanks alot .. Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/#findComment-1184704 Share on other sites More sharing options...
Pikachu2000 Posted March 8, 2011 Share Posted March 8, 2011 If your host won't upgrade from php4, then yes, it's definitely time to change . . . Link to comment https://forums.phpfreaks.com/topic/230019-call-to-undefined-function-date_default_timezone_set/#findComment-1184707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.