I use the following function <?php echo date('H:i:s'); ?>, which currently results in 15:08, whilst at my place it's 22:08.
Is it possible to add a php.ini file to the directory so it sets all times at GMT+1 ?
I use the following function <?php echo date('H:i:s'); ?>, which currently results in 15:08, whilst at my place it's 22:08.
Is it possible to add a php.ini file to the directory so it sets all times at GMT+1 ?
There's only one php.ini per host, so it can't be edited for the needs of just one user. Use date_default_timezone_set. in your initialization script.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.