The following is a summary of common form special character processing:
Test string:
The code is as follows
Copy Code
$dbstr = ' D:testHTTP://WWW.111CN.NET, Tian Yuan Blog'!= ' 1 ' OR ' 1 'php OUTPUT";?> ';
Hide PHP Version
For security reasons, it is best to hide the PHP version to avoid some of the attacks caused by a PHP version vulnerability.
1, Hidden PHP version is hidden "X-powered-by:php/5.2.13″ this information."
The method is simple:
Edit
Here is a simple file upload form
The code is as follows
Copy Code
PHP's configuration file php.ini, where the option upload_max_filesize specifies the file size to be uploaded, by default 2M
$_files array
The PHP language itself does not support multithreading, so the development of crawler programs is not efficient, with the help of Curl Multi it can achieve concurrent multi-threaded access to multiple URL addresses. Download file code with Curl
Brief introduction
SPL is all called (Standard PHP library,php Standard library), from the official document, SPL mainly contains the following blocks:InterfaceDataIteratorsAbnormalfunction enhancementArrayobjectSqlfileinfoOne, interface
NGINX+PHP-CGI (PHP-FPM) Web environmentA sudden discovery of system load rising, top view found many php-cgi process CPU utilization close to 100%Looking for one of the CPU 100% php-cgi process PID, followed by Strace-p 10747, the result found the
Recently, their own use of vacation time to learn PHP, perhaps we do not know what PHP is? PHP is a web-embedded language, just like asp,jsp, which should be the easiest language to learn in programming. A few years ago, when I was on the Yeda, the
Weekend free to see the prototype model, which talked about shallow copy and deep copy, think of PHP in the corresponding assignment, cloning and cloning is a shallow copy or deep replication.
Let's take a look at the assignment, such as a resume
Today, a day, finally the PHP sqlsrc extension to fix. In order for PHP to successfully connect to the MSSQL, it is not easy.First step: Install WampserverI installed the Wampserver 2.4.17 version. Note: Install Wampserver before installing
--js with PHP is a weakly typed language weakly typed language just does not display the performance definition variable when the system automatically gives defaultSo you can define variables when you define PHP variables.1:---------common
--js with PHP is a weakly typed language weakly typed language just does not display the performance definition variable when the system automatically gives defaultSo you can define variables when you define PHP variables.1:---------common
------The PHP language is similar to the way JavaScript is used--js with PHP is a weakly typed language weakly typed language just does not display the performance definition variable when the system automatically gives defaultSo you can define
Some Ideas about forms and some ideas about forms
Form
the length of the get submission is limited and the encoded content is visible in the address bar, the opposite is post.
Text input
Text Box
Password box
Text Field ">
Button
Submit
PHP method for obtaining page execution time (recommended), php method for obtaining
You can add the following lines of code to the header and end of the page to know the page execution time:
Header:
Tail:
$ Etime = microtime (true); // get
Analysis of php-fpm static and dynamic execution methods, analysis of php-fpm
This article describes the comparison between static and dynamic execution methods of php-fpm. We will share this with you for your reference. The details are as
Php store API secondary development and use example, api Secondary Development
This article describes the second API development and usage of the php version. We will share this with you for your reference. The details are as follows:
1. weixiaodian.
PHP + jquery + CSS create Avatar login window (like QQ login), jquerycss
This article introduces how to design a simple and interesting logon box function that includes the Gravatar avatar. the Avatar is exported from gravatar.com Based on the email
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