gitbook Master
You can also use the Editor's preview website feature locally to generate a static web page in the local _books directory, which is the web version of the book. Earlier versions of the Gitbook Editor can generate EPUB, PDF, and Mobi-formatted files directly locally, but the latest version removes these features.Use Gitbook to write your own API documentationGitbook write his own book is very convenient, I also released a period of
Java has won the TIOBE Index programming Language Award of the year. This is because Java have the largest increase in popularity with one year time (+5.94%). Java leaves runner ups Visual Basic.NET (+1.51%) and Python (+1.24%) far behind. At first sight, it might seem surprising a old language like Java wins this award. Especially if-to-consideration that Java won the same award exactly ago. On second thought, Java was currently number one in the enterprise Back-end market and number one in the
Original address: Http://javascript.info/tutorial/regexp-introductionBrief introductionRegular expressions have a very powerful function for string "Find" and "replace". In JS, it is integrated in the string method: Search, match, and replace.A regular expression, consisting of a pattern(matching rule) and a flags(modifier-optional).A basic regular match is the same as a substring match. A string surrounded by a slash "/" can create a regular expression.1 regexp =/att/ 2 3 str = "Show me the pat
upper-level physical path of the current FILE?>
Example 1
The code is as follows:
Function getUrlRoot ($ url ){# Add the header and tail$ Url = $ url ."/";# Determining domain namesPreg_match ("/(\ w *):\/\/)? \ W *\.? ([\ W |-] * \. (com.cn | net.cn | gov.cn | org.cn | com | net | cn | org | asia | tel | mobi | me | TV | biz | cc | name | info ))\\// ", $ Url, $ ohurl );# Determining IP addressesIf ($ ohurl [3] = ''){Preg_match ("/(\ d + \.) {3}
How PHP identifies websites accessed by computers or mobile phones. How does PHP identify websites accessed by computers or mobile phones? it is becoming increasingly popular to visit websites through mobile phones. if we want to count the number of websites accessed through PCs, how does PHP identify visits to websites on mobile phones?
Access to websites through mobile phones is becoming more and more popular. if we want to count the traffic of websites through PCs and mobile terminals, or we
The judgment of mobile phone login is of great significance in PHP development, this article will introduce this method of judgment.
Use the PHP method to determine if a mobile login code tutorial:
function Is_mobile () { static $is _mobile; if (Isset ($is _mobile)) { return $is _mobile; } if (Empty ($_server[' http_user_agent ')) { $is _mobile = false; } ElseIf (Strpos ($_server[' Http_user_ AGENT '], ' Mobile ')!== false | | Strpos ($_server[' http_user_a
This article summarizes the PHP get root domain name method, share to everyone for your reference. The implementation method is as follows:
If you simply get the current access to your page's domain name, we only need to use the PHP function http_host can be done, if it is to extract the URL root domain is the need for regular, the following to see a few specific instances.
It is very simple to get the current domain name:
The code is as follows:
Example 1
The code is as follows:
function Getu
Using the User Agent to determine the mobile deviceWebApp In addition to making a responsive design, you can also give mobile devices a set of UI,PC to do a set of UI, and then in the foreground to determine the corresponding jump. Judging whether the mobile device is generally based on the browser's useragent, although it can be forged, but easy to use, and Chrome's device simulation features to facilitate debugging.CodeDetermine whether the mobile device function IsMobileDevice (UA) { if (/
make the website responsive, but if you don't want to do this, you can use PHP to determine the device type and then display the corresponding interface and content. Today, I am sharing a PHP method to determine whether a device is a mobile phone or tablet. The method is derived from WordPress (wp-DES/vars. php: 125) and is applicable to most types of mobile phone/tablet disconnections:
Method 1:
/** * Test if the current browser runs on a mobile device (smart phone, tablet, etc.) * * @staticv
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.