[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

iPad Background

Hello - how can I change a background if a user is visiting on an iPad instead of a regular computer please?

Thanks!
0
Nico2011
Asked:
Nico2011
1 Solution
 
COBOLdinosaurCommented:
pick it up on the server side:

if ((bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'))
{
      // generate with the alternate background
}
else
{
    // generate with the normal background
}




Cd&
0
 
Nico2011Author Commented:
Thanks very much!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now