Linked Questions

31 votes
6 answers
129k views

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?
stacker's user avatar
  • 623
35 votes
2 answers
66k views

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 ...
Gromdroid's user avatar
  • 493
0 votes
1 answer
7k views

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: ...
padawanTony's user avatar
  • 1,359
0 votes
1 answer
1k views

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 ...
user avatar
-1 votes
1 answer
317 views

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 ...
user3913769's user avatar
0 votes
1 answer
231 views

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 ...
Lee's user avatar
  • 1
1 vote
1 answer
228 views

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 ...
Lovepreet Singh's user avatar
45 votes
7 answers
245k views

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 ...
jaspn's user avatar
  • 453
3 votes
3 answers
27k views

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, ...
Ming's user avatar
  • 794
4 votes
3 answers
10k views

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")...
Alon's user avatar
  • 7,788
0 votes
3 answers
32k views

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.
sohag513's user avatar
  • 165
1 vote
2 answers
14k views

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(...
Arsen Ospanov's user avatar
3 votes
1 answer
8k views

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 ...
Muhammed Bhikha's user avatar

15 30 50 per page