prova a fare un print_r($_SERVER) li dovresti trovare i dati che ti servono...