Jump to content

Recommended Posts

First time poster so please take it easy on me. I am developing on a windows 7 machine with WAMP Server running and no configuration changes from the defaults. IIS is turned off.

In my site I have a class method to record actions taken by the user. During this method I obtain a timestamp in unix and save it to the database. On the Dev machine, this works fine but when I put it online I get an error.

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

I traced the issue through the code to this point:

// get date stamp
$date = date_create();
$datestamp = date_timestamp_get($date); // ERROR HAPPENS HERE

 

I have tried this method and the OOP method and works fine locally, but fails on my full server which is a windows server running IIS.

I have painstakenly checked the PHPINFO.php for discrepancies but can't see anything that would affect this setting - any help would be really appreciated.

Kind Regards

Michael

Link to comment
https://forums.phpfreaks.com/topic/275438-php-datestamp-issue/
Share on other sites

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.