Jump to content

Detect Mobile Devices - PHP - $_SERVER['HTTP_ACCEPT']


Jayram121

Recommended Posts

$_SERVER['HTTP_ACCEPT'] just specifies what type of file types or media the client can/will accept as a response. This isn't really useful for mobile device detection specifically, though indirectly I suppose you could use it for some feature detection, which I guess is indirectly relevant to displaying stuff..

 

Anyways, normally you would parse $_SERVER['HTTP_USER_AGENT'] to detect the mobile device.

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.