Michael-T Posted March 9, 2013 Share Posted March 9, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/275438-php-datestamp-issue/ Share on other sites More sharing options...
Jessica Posted March 9, 2013 Share Posted March 9, 2013 Turn on error reporting and set to E_ALL so you can see the error. Are you sure the servers have the same version of PHP? Quote Link to comment https://forums.phpfreaks.com/topic/275438-php-datestamp-issue/#findComment-1417723 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.