I am using a date function echo date ('Y'); which results in the following error message.
Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings.
Is this anything to do with my php.ini page? What change I need to make in php.ini in order to make this code working?
To make that warning go away, you either need to set your timezone with this function:
http://php.net/manual/en/function.date-default-timezone-set.php
or set this in your php.ini:
http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
Update
From the comment below, valid timezones here:
http://www.php.net/manual/en/timezones.php