Category Archives: PHP

change date.timezone in php

Open php.ini file and search for date.timezone directive. It should look something like this:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = ‘America/New_York’

Source: http://linuxapachemysqlphp5.blogspot.com/2013/04/change-datetimezone-in-php.html

PHP increase file upload size

You can increase file upload size by setting upload_max_filesize to a higher value. Find the upload_max_filesize directive in php.ini and change the default value:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 8M

Source: http://linuxapachemysqlphp5.blogspot.com/2013/04/php-increase-file-upload-size.html