using php to get location