Linked Questions
48 questions linked to/from Simplest way to detect a mobile device in PHP
31 votes
6 answers
129k views
PHP - Check if the page run on Mobile or Desktop browser [duplicate]
In my PHP page I should display two different text contents according to whether the page run under mobile or desktop browser. Is there a way to perform this control in PHP?
35 votes
2 answers
66k views
Detect mobile browser [duplicate]
Possible Duplicate: Simplest way to detect a mobile device I have a site and I want to detect which browser is used and redirect them. I have a php index and the code must be in php. I've found ...
0 votes
1 answer
7k views
Device Detection With PHP [duplicate]
I am working in PHP, specifically Laravel. I want to show different views according to how big the user's screen is (ex: mobile or pc). In simple words, here is what I want my routing to look like: ...
0 votes
1 answer
1k views
Know if the device opening the site is android or pc [duplicate]
I have a site and I have hosted the site in shared hosting. The thing is it looks great in PC but doesn't look that good in mobile devices. I know I can make it look good with media queries, but I ...
-1 votes
1 answer
317 views
php function to detect that site is open in mobile phone or in computer browser [duplicate]
I need a php function which will help me to detect that user is logged-in from his mobile phone or from his computer? Is there a way to detect this? I have tried with $_SERVER['HTTP_USER_AGENT'] but ...
0 votes
1 answer
231 views
show text link depending on mobile/desktop [duplicate]
Possible Duplicate: Simplest way to detect a mobile device I'm not sure if it's as simple as it sounds, but I'd like to get the following: Currently I have a form that takes an input of a start ...
1 vote
1 answer
228 views
In API (PHP) - Way to know request from Native iOS application or Web [duplicate]
I have an API which is being used for both web site and mobile native iOS application. Is there any way to know origin of request to API in PHP? That means I want to know from where particular ...
45 votes
7 answers
245k views
Responsive css styles on mobile devices ONLY
I'm trying to make my responsive CSS styles work only on tablets and smartphones. Basically I have a style for desktop, a style for mobile: portrait and a style for mobile: landscape. I don't want the ...
3 votes
3 answers
27k views
PHP with Screen Width condition
I'm trying to limit my posts on Wordpress if the screen width is less than 480px (mobile device, responsive). However I ran into problem as I found out you cannot use PHP to detect screen width, ...
4 votes
3 answers
10k views
How to detect between mobile & tablets in PHP
I read on this thread: Simplest way to detect a mobile device on how to know if the browser is a mobile device. the general code is this: <?php include("Mobile_Detect.php"); include("demoData.php")...
0 votes
3 answers
32k views
Getting device name and model using javascript, jquery or php
I want to create a web page where I can detect the device name and model when visitor view this page from his/her device.
1 vote
2 answers
14k views
Detect mobile device in PHP
I have a slider, it shows 4 videos, I need to show the picture when I go through with mobile device, video when through a desktop , the slider is written in main.min.js, and includeed in the main.tpl(...
3 votes
1 answer
8k views
Only execute JS function on desktop computers (parallax plugin)
Is there any way I can restrict the execution (if statement) of javascript so that it only applies to desktop computers, It needs to be off when the user is on a mobile/tablet device. Below is the ...