How does PHP determine whether to call a specified template file on a mobile phone?

Source: Internet
Author: User
I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static files and static template files, I am thinking about how to use a mobile phone to access the files... I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static templates and static templates, I am thinking about how to call the template file of the mobile phone when accessing the mobile phone.

I don't know what I described. I hope I can help solve the problem. Thank you !~

Reply content:

I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static templates and static templates, I am thinking about how to call the template file of the mobile phone when accessing the mobile phone.

I don't know what I described. I hope I can help solve the problem. Thank you !~

Call the mobile phone template when determining UA as a mobile phone

Determine whether the current access device is a mobile phone. If it is a mobile phone, directly execute the corresponding template file in the mobile Directory.

Http://detectmobilebrowsers.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.