1. Written in front
There are some interesting vulnerabilities that have been encountered recently, such as PHP deserialization vulnerabilities, PHP object injection. These vulnerabilities may be difficult to meet at ordinary times, but in CTF and
One:
This topic is too cliché.
In php.ini MAGIC_QUOTES_GPC = On
Can really withstand some of the injection attacks, but is this a panacea?
We are now going to post or get a variable that converts the spaces, punctuation, and special characters
When the Windows Server opens the GD Library of PHP, the results of phpinfo () after using CGI do not appear in the Configure Command.
Find the php.ini file Extension=php_gd2.dll remove the front;
Also attached is how to detect if the GD library
nbsp Generate Excel files in PHP
Haha, learn another trick today. PHP to generate Excel documents is too simple, it is estimated that everyone will use, so
Shared out.
Let's look at the code:
?
Header
Bitwise operators
Bitwise operators allow placement of the bits specified in the integer number. If both the left and right arguments are strings, the bitwise operator will manipulate the ASCII value of the character.
Do not move more than 32 bits
22: How to get the user's real IP PHP Code:-------------------------------------------------------------------------------- ?function Iptype1 () {if (getenv ("Http_client_ip")) {Return getenv ("Http_client_ip");}else {return "None";}}function
BreakThe break ends the execution of the current for,foreach,while,do-while or switch structure.
Continue
Ends the current loop and jumps to the next example:
while (1) {
if ($mrs [' lm_name ']== ' home ' | | $mrs [' lm_name ']== ' forum ')
E-mail authentication is perhaps the most common form of Web page verification, which, in addition to verifying e-mail addresses, optionally checks the MX record in the DNS of the mail domain to make the message validation more powerful.
function
In PHP, there are two functions end () and current () that read the last element value of the array, which reads the first value of the array,So let's take a look at this. I also read the file 111cn.gif file suffix gif*/$file = ' www.111cn.net.gif ';
Class Page {Public paramPublic $pageName = ' page '; Default page label, which is the pagename in filename.php?pagename=4Public $prevPage = ' Public $nextPage = ' > '; Next pagePublic $prevBar = ' Public $nextBar = ' >> '; Next Page BarPrivate
This is very simple to do, JS words as long as if (window!= top) on the line, and the PHP tutorial as long as the Judge $_server[' Http_host '; The specified domain name can prevent the page from being invoked.-->
Script language= Web Effects >
PHP gets all the file names in the directory
1. First open the directory to operate and point to it with a variableOpen the subdirectory under PIC under the current directory common.$handler = Opendir (' Pic/common ');2. Read all files in the
The Forum for the operation of the company was attacked by the network helpless do not have a very good solution, only one of the IP address, the final closure of more than 1600 IP segment, 2 months after the network attacks gradually reduced,
My PHP environment is 5.4, and when I use MySQL, I suddenly receive the following error:
Mysql_connect (): Headers and client library minor version mismatch. headers:50508 library:50166
Simply change to MYSQLND extension, the following is a brief
Yaf does not contain orm data encapsulation, but can be built on pdo to implement its own encapsulation.I. Use the php Singleton mode to create a base class. Library \ Base. phpII. Take the registered user information as an example. $ userInfo is
Official website: http://phpexcel.codeplex.com/The following describes the usage methods,Include 'phpexcel. Php ';Include 'phpexcel/Writer/excel2007.php ';// Or include 'phpexcel/Writer/excel5.php'; for output. XlsCreate an excel file$ ObjPHPExcel =
The following format requirements apply to domain names:1. The labels in a domain name are composed of English letters and numbers. Each label cannot exceed 63 characters and is not case sensitive. You cannot use other punctuation marks except
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