In many cases, we need to encrypt and decrypt data. For example, some data needs to be stored in cookies, but it cannot be easily obtained by users, in this case, we need to encrypt the data and save it to the cookie, and decrypt it when we need to
Stream_bucket_append function: adds data to a queue.Stream_bucket_make_writeable function: returns a data object from the Operation queue.Stream_bucket_new function: Creates a new data for the current queue.Stream_bucket_prepend function: Prepare
The simplest way is to add the following code directly to the php program code:
Copy codeThe Code is as follows: error_reporting (E_ALL ^ E_NOTICE ^ E_WARNING );
Disable all notice and warning errors.
Put this statement in the function inclusion
The last time we talked about refcount and is_ref, we will talk about memory leakage.Copy codeThe Code is as follows: $ a = array (1, 2, & $ );Unset ($ );
In the old PHP version, memory leakage occurs. The analysis is as follows:
Run the first line
The mediation mode. The purpose of this mode is to encapsulate the interaction between a group of objects to prevent mutual interference between objects. The Mediator acts as an intermediate aggregation point between Colleague objects. Colleagues'
Buffer
Buffer is a memory address space. The default size of a Linux system is generally 4096 (4 kb), that is, a memory page. It is mainly used for data transmission between devices with Different Storage speeds or devices with different priorities.
The basic idea of exchanging sorting: Compares the data to be sorted in two or two pairs. If a reverse order occurs, it is exchanged until all the data is sorted.• Basic Idea of Bubble Sorting:1. Scan all data from the back to the back. If two
By default, most web servers are configured with anonymous access, that is, user information on the server is not prompted to identify the information. Anonymous access means that users can access the website without using their usernames and
PHP code security and XSS, SQL injection, and so on are very useful for the security of various types of websites, especially UGC (User Generated Content) websites, forums, and e-commerce websites, it is often the hardest hit area of XSS and SQL
Serialize () and unserialize () are described in the php manual as follows:
Serialize-Generates a storable representation of a value
Serialize-generate a representation of a stored value
Unserialize-Creates a PHP value from a stored
I,
Apache 5.4 -- httpd-2.4.4-win32.zip
PHP 5.4 -- php-5.4.15-Win32-VC9-x86.zipNote that the thread security version of VC9 already contains PHP and Apache connector DLL, so you do not need to download this DLL.
Ii. Configuration
1. ApacheUse any
I didn't pay attention to my naming rules during my previous work. Now I have to strictly follow the naming rules of my camper:
The related definitions are as follows:
Basic ConceptsThe camel naming method (also known as the CamelCase method) is a
ProblemSpeaking of $ _ REQUEST, we all know that it is a collection of $ _ GET and $ _ POST. But if you are interested, check the document and you will see:
$ _ REQUEST
An associative array that by default contains the contents of $ _ GET, $ _ POST
1. Arithmetic Operators: +,-, *,/, and %.
2. Increment/decrease operators: for example, $ a ++, $ a --, ++ $ a, -- $.
For example:
$ A = 10;$ B = 5;$ C = $ a ++; // assign values first and then auto-increment. $ C = $ a, $ a = $ a + 1$ D = $ B --; //
Today, I sorted out the program code about uploading files and displaying the progress bar, and optimized the code. Solve the problem that has been plagued: Sometimes the progress bar does not reach 100%, and the browser is suspended. The tests in
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