MeuMySQL Blog is now at http://blog.mdnsolutions.com/.

Monday, April 29, 2013

MDN Solutions Blog

Hi everybody! Meu MySQL Blog now is http://blog.mdnsolutions.com/.

Please click below to be redirected!

http://blog.mdnsolutions.com/


Thanks!

Wednesday, January 9, 2013

PHP: Date Default Timezone

Hi Folks! This is a short article about a common warning we can get when using php without be careful with the settings.  It's quite importante in your application to determine the time zone you are in. If you don't do so, you can get warnings such the one below:


Warning: date_default_timezone_get(): 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 

To sort it out just add into your application the function  date_default_timezone_set('value');
As value you can use any of the supported timezones by PHP, they can be found here.

Enjoy!

References:
http://php.net/manual/en/function.date-default-timezone-set.php
http://php.net/manual/en/timezones.php

Friday, January 4, 2013

Creating your own Composer Package

Hi folks! I'd like to talk about to create your own dependency for Composer in this article. It's been one of the best invented tools for PHP ever in my humble opinion. Basically, you can manager your application's dependencies in a really easy way. If you haven't heard about it please check out the Compose website.

In this article I shall you show to create your own dependency using Github, deploy and maintain using Packagist.