Our current hosting company is based in Canada so obviously their times are different to the UK.
Is there any way in PHP to display the Date/Time but get it from a different server if i specify the IP?
Our current hosting company is based in Canada so obviously their times are different to the UK.
Is there any way in PHP to display the Date/Time but get it from a different server if i specify the IP?
you can use date_default_timezone_set (see documentation) function to set your actual script time to whatever you need
example for Rome
date_default_timezone_set('Europe/Rome');