Advertisement

11.17.2007 at 01:57PM PST, ID: 22967913
[x]
Attachment Details

date_default_timezone_set causes fatal error when https

Asked by darkstar3d in PHP Scripting Language, Apache Web Server, Secure Socket Layer (SSL) & HTTPS

Tags: undefined, call, date_default_timezone_set, fatal

Have a problem with date_default_timezone_set(). It causes the following error when the code in question is called via https:

Fatal error: Call to undefined function: date_default_timezone_set() in /htdocs/timetest.php on line 2

This error can be reproduced even to having just enough to call it as in the snippet below. This is problematic as it causes non fatal errors in our code with that set line commented out. I could leave it that way but would like to find out how to fix it. The code is running at 1and1 shared server.Start Free Trial
1:
2:
3:
<?php
date_default_timezone_set('America/New_York');
?>
 
 
Loading Advertisement...
 
[+][-]11.17.2007 at 02:00PM PST, ID: 20305516

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, Apache Web Server, Secure Socket Layer (SSL) & HTTPS
Tags: undefined, call, date_default_timezone_set, fatal
Sign Up Now!
Solution Provided By: hernst42
Participating Experts: 2
Solution Grade: B
 
 
[+][-]11.17.2007 at 02:05PM PST, ID: 20305532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.17.2007 at 02:16PM PST, ID: 20305565

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.17.2007 at 02:19PM PST, ID: 20305572

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.17.2007 at 02:21PM PST, ID: 20305581

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628