Real life problems solved

Advert

Set timezone in .htaccess for PHP

Posted by on Feb 28, 2011 in Date & Time, htaccess | 0 comments

To set the timezone in .htaccess you can use the following code: php_value date.timezone...

Read More

strtotime with UK date

Posted by on Nov 8, 2010 in Date & Time | 0 comments

Had a problem today where using strtotime was not working with UK Dates DD/MM/YY Using the following code though fixed it: $date =...

Read More

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function

Posted by on Sep 30, 2010 in Date & Time, PHP | 0 comments

Getting this in a PHP site I am writing, to fix add this to a common include on your PHP...

Read More

PHP Format DateTime for MySql

Posted by on Jul 19, 2010 in Date & Time, MySql, PHP | 0 comments

Was adding a date from a service to MySql using PHP and needed something to convert the PHP string into something MySql could use for a...

Read More
Adsense