Gettimeofday.Php

 
<?php$time = gettimeofday();
$GMToffset = $time['minuteswest'] / 60;
echo "Server location is $GMToffset hours west of GMT.";?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.