Jump to content

$_SERVER['PHP_SELF'] - safari showing as firefox


russthebarber

Recommended Posts

I am just setting up a db to catch user info on my site. After some testing all is working except that when I use Safari, my log wrongly shows that I am using Firefox. I have been scanning the web for a solution but all workarounds I have found seem to be very out of date. Can anyone help with this? here is the code I am using:

 

//logs user info to db
$browser = $_SERVER['HTTP_USER_AGENT'];
$time = $_SERVER['REQUEST_TIME'];
$refer = $_SERVER['HTTP_REFERER'];
$page = $_SERVER['PHP_SELF'];
$pageQuery = $_SERVER['QUERY_STRING'];
$ip = $_SERVER['REMOTE_ADDR'];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.