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"); Quote Link to comment 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) Quote Link to comment 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"); Quote Link to comment 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. Quote Link to comment 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 .. Quote Link to comment 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 . . . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.