Once the simple study of PHP, read "PHP and MySQL Web development", as well as the help of a universal search engine. This preparation system to learn a bit, reference is PHP Manual.
What PHP can do
PHP is primarily used for server-side scripting, but PHP's capabilities are far from limited. PHP is mainly used in the following three areas:
Server-side scripting
Command-line scripting
Writing desktop Applications (PHP-GTK)
Useful scripts
$_SERVERis a special PHP reserved variable
; Windows NT 5.1; trident/4.0; mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1);. NET CLR 2.0.50727) ';//saccept = ' image/gif, Image/jpeg, Image/pjpeg, Image/pjpeg, Application/x-shockwave-flash, Application/msword, Application/vnd.ms-excel, Application/vnd.ms-powerpoint, */* ';SUserAgent2 ="Mozilla/4.0" (compatible; MSIE 8.0; Windows NT 5.1; trident/4.0; infopath.3;. NET CLR 2.0.50727;. NET CLR 3.0
Mobile Browser Type:UC Browser, QQ browser, open Gate browser, Baidu Mobile browser, 360 Security browser, Google Browser, Sogou Mobile browser, Cheetah browser, other browserDomestic UC and QQ, Baidu and other mobile browsers are based on the WebKit modified kernel, the domestic not self-developed core, like the domestic mobile phone operating system are based on Android modifiedThere are only four browser cores worldwideAt present, there are only four independent browser cores, namely Microsof
Python crawler a regular browser for Web sites to visit. Because if you do not disguise yourself, some sites will not climb back. If you have seen theoretical knowledge, you know that we are going to add user-agent to the header at GET.If you have not read the theoretical knowledge, follow the following keyword search study it:D
There are two types of HTTP messages: Request messages and response messages
Request line and header line for request message
GET, POST, HEAD, PUT, DEL
Recent projects, using spring MVC to do the control layer, the file name of the download is always in the mainstream browser display garbled, Firfox is not garbled, IE has become garbled. is also annoying, ie is always unique, no way, can only let the program to adapt, in the Internet also search a lot, but the solution is not ideal, mainly IE11 as the mainstream browser, a lot of people before the proposal has been invalidated.Simply put, before using request to get the header of the user-agent
An important task for Web designers and developers is cross-browser testing. Who makes us live in this happy and painful age? There are so many browsers in front of us, and ie6. This article describes various problems and knowledge related to cross-browser testing, including rendering, platform, device, and JavaScript Engine.Fantasy five combination
In those days when Internet Explorer dominated the world, Web designers often fall into a verbal war with their competitors. However, when some new
Python Method for counting the number of log ip addresses and the number of ip addresses in python logs
This article describes how to collect ip address counts in python. Share it with you for your reference. The details are as follows:
import ref=open("/tmp/a.log","r")arr={} lines = f.readlines()for line in lines: ipaddress=re.compile(r'^#(((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?))') match=ipaddress.match(line) if match: ip = match.group(1) if(arr.has_key(ip)
client/search engine spider) makes an HTTP request, and the server knows what browser the user is using (mail client/ Search engine spiders) to access the. Sometimes in order to achieve some purpose, we have to go to a good-natured deception server to tell it I am not using the machine to access you.
user_agents = [' mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) gecko/20130406 firefox/23.0 ', \' mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) gecko/20100101 firefox/18.0 ', \' Mozilla/5.0 (Win
') headers_useragents.append (' mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; trident/4.0; SLCC2;. NET CLR 2.0.50727; infopath.2) headers_useragents.append (' mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; trident/4.0; SLCC1; NET CLR 2.0.50727;. NET CLR 1.1.4322;. NET CLR 3.5.30729;. NET CLR 3.0.30729) ' Headers_useragents.append (' mozilla/ 4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64;
Last week, Microsoft officially launched the first preview version of Internet Explorer 11 with Windows 8.1. In this way, rumors of a leaked version of the controversial web browser should rest. We now know some important details about Internet Explorer 11, including support for WebGL, prefetch: Pre-read, such as uploading a preview of a file, not knowing the right to translate, PreRender (pre-presentation), Flexbox, Mutation observers and other web standards, perhaps more interestingly in IE11,
like Mac os X; En-US) applewebkit/420.1 (khtml, like Gecko) version/3.0 mobile/1a542a safari/419.3 "," mozilla/5.0 (IPhone; U CPU iPhone os 4_0 like Mac os X; En-US) applewebkit/532.9 (khtml, like Gecko) version/4.0.5 mobile/8a293 safari/6531.22.7 "," mozilla/5.0 (IPad; U CPU os 3_2 like Mac os X; En-US) applewebkit/531.21.10 (khtml, like Gecko) version/4.0.4 mobile/7b334b safari/531.21.10 "," mozilla/5.0 ( BlackBerry; U BlackBerry 9800; EN) applewebkit/534.1+ (khtml, like Gecko) version/6.0.0
"}; }
Finally, IE's identification bar, IE is a big pit (red box part is recommended for the judge of the place):
As can be seen from the above figure, IE6/7 from the MSIE version of the direct judge, from the IE8 began with more than a Trident information, then IE8-IE11 just Judge Trident version number. Then we can write two judgements on our own, first to determine whether the UA information contains
This article describes the two types of logs in the Nginx server view. According to the address you find, vi edit, enter the nginx.conf file to find the pathTo find, my machine's two logs storage location:/var/logdata/nginx/access.log/var/logdata/nginx/error.logAccess log analysis pick up a section of the results: 100.109.195.91--[17/feb/2017:00:08:11 +0800] "Get/data/upload/shop/common/loading.gif http/1.0" 134 /www.mall121.com/"" mozilla/4.0 (compatible; MSIE 8.0;
Enter the DOS operator windowCD into all folder directories of the class file to be hit into the jar packageJar CVF [Name of the generated jar] [list class file]//If there are multiple, separated by an empty spacerSuch as:Single or several class files that operate sporadicallyJar CVF Ibstool.jar Com/cn/ibs/turnd.class com/cn/ibs/turnb.classTwo, a folder below all the class file into a jar packageJar CVF Ibstool.jar * EnterTo build the executable jar package:The class in the compiled class file m
In the course of Java Web Development, we may sometimes refer to the Jsp,servlet version that the environment supports. Test errors may occur if version must not.Method: Open the Common/lib directory for Tomcat, there are two jar files: Jsp-api.jar Servlet-api.jar. If not, it may be that you did not add it in. Unzip the two files and open the Mainmeft.mf file under Meta-inf with Notepad.My version of the servlet is: manifest-version:1.0Ant-version:apache Ant 1.6.5CREATED-BY:1.4.2_12-B03 (Sun
Technologies
Enterprisedb Advanced Server
Enterprisedb Corp.
Toad for Oracle
Quest Software Inc.
Designtools and Modeling
Biglever Software Gears
Biglever Software
Corticon Business Rules Modeling Studio
Corticon Technologies
Enterprise Architect
Sparx Systems Pty LTD
IBM Rational Software Architect
Ibm
Serena Mashup Composer
Serena Software
Structure101 f
Good Java Style:part 1
by Thornton Rose
Introduction
Have worked as a software developer and consultant for many years, I have seen a large amount of code in a variety of PR Ogramming languages. It has run the gamut from elegant to ugly, and unfortunately much of it has been. I hope to persuade for you and my fellow developers, which we should give as much attention to the style of our code as we giv E to the user interface and visible parts of a application. In this the "a" a two part series,
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.