1. Single-case mode
The singleton pattern, as its name implies, is only one instance. As an object's creation mode, Singleton mode ensures that a class has only one instance, and instantiates itself and provides this instance to the system as a
Because PHP supports using the same Function to operate on local files and remote files. Therefore, some malicious users force the PHP Code on the website to contain their own files to execute their own scripts. The following Code provides the
PSR is the abbreviation for PHP standards recommendation.
PSR-1: The basic code stylePHP tagsYou must put the PHP code in the
or
tag. Do not use other PHP tag syntax.CodingAll PHP files must be encoded using the UTF-8 character set and
My php page is set to & quot; the encoding of the database is also garbled... mysqlphp
My php page is set
The database code is also utf8
Variable_name ValueCharacter_set_client utf8Character_set_connection
The following code implements the ability to include different files depending on the file name of the browser's address bar parameter.
Copy CodeThe code is as follows:
$file _name = $_get["filename"]; Get the current file name
Include ("$file
The explosive popularity of PHP has prompted many PHP-based sites overnight, many of which include online tutorials, sample code, tips, and prompts.ChinaHttp://www.phpuser.com-PHP Chinese user, that's itHttp://www.phpx.com-China PHP
In the area network, the Magic Packet can be sent to the host's network card, Magic Packet has 6 "FF", and then 16 network card MAC, when the main version of the open support Wake on LAN function, the network card received a match the magic Packe T,
checkdnsrr-DNS traffic checks for the specified host (domain name) or IP address
closelog-Turn off System log links
define_syslog_variables-initialization of all syslog-related variables
DNS_CHECK_RECORD-CHECKDNSRR Alias
DNS_GET_MX-GETMXRR Alias
dns_
The environment of this article is Ubuntu 12, and other systems can check in or communicate with me.
1, install Nginx
This step is relatively simple, direct sudo apt-get install Nginx, you can install. After installation, you need to set the port
Description: Code Source "PHP and MySQL Web application Development" book, there is some of the code is modified, after my test all can be used. This IP address shown in the normal, my computer is supported IPv6. Database scripts for this
There are so many contact methods listed at the beginning of the article that it will inevitably make everyone feel a bit AD-like, but it cannot be questioned that there is indeed a ding point in silence ^ _ ^, although sometimes too detailed will
It's a very old vulnerability, but it can be used now! Google batch releases N + and Plogger is a PHP-based network diary program. The program does not filter user-submitted URI data. Attackers can exploit this vulnerability to execute arbitrary
6. PHP resources you can learn more about php3. Many email lists and books are very useful to you. The explosive popularity of 6.1 site PHP makes a lot of PHP-based sites appear overnight, many of which have online tutorials and 6. PHP resources
You
Because PHP supports using the same Function to operate on local files and remote files. Therefore, some malicious users force the PHP Code on the website to contain their own files to execute their own scripts. The following Code provides the
Article There are so many contact methods listed at the beginning that it will inevitably make everyone feel a bit ad-like, but it cannot be questioned that there is indeed a ding point in silence ^ _ ^, although sometimes too detailed will be said
(1) Access to other websites by accessing the file:
The URL of any Web site is actually a path to the page file, so we can open the file to open the Web page file.
We can then write the contents into our own files. In this way we can search for
checkdnsrr-DNS traffic checks for the specified host (domain name) or IP addresscloselog-Turn off System log linksdefine_syslog_variables-initialization of all syslog-related variablesDNS_CHECK_RECORD-CHECKDNSRR AliasDNS_GET_MX-GETMXRR
The following code implements the ability to include different files according to the file name of the browser's address bar parameter.
Copy Code code as follows:
$file _name = $_get["filename"]; Get the current file name
Include ("
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.