Similar to installing other software, the installation process is basically silly.
Install nginx and execute the following command, which will be completed soon
Sudo apt-Get install nginx
Default Configuration File Installation location:
1. Use http header information That is, use the PHP header function. The header function in PHP is used to send control commands that should have been specified by the HTTP protocol to the browser through the Web server, such as declaring the type
Of course, you must first enable the reload_assist_ims on Function in CDN. in this way, no-cache is not used. this will convert no-cache to if-modified-since. so we write
ProgramIt is better to control if-modified-since. note: In the cache system
The following is my idea to apply the PHP environment configuration of the server
ProgramGenerate a license string and write the string to the license file.
Code. Even if the program is not moved to another server, the program cannot run. I hope
Free PHP Space Application for MB capacity abroad/meters can be bound
Freewebhostingarea: Free PHP space, MB Storage space, up to 10 MB for a single file, unlimited File Upload type, 5 GB traffic limit per day, FTP and Web file upload management,
Syntax: String addslashes (string Str );
Description
This function adds a diagonal line to the quotation mark of the string to be processed by the database for smooth operation of the database query. The modified characters include single quotation
Test the regular expression acquisition for common HTML standard hyperlink Parameters
Because I recently want to create something similar to a professional search engine, I need to capture all the hyperlinks on the web page.
Let's test it.
Code
I think that in the course of learning, you should know how to play and make a sense of accomplishment. In that case, the learning effect and enthusiasm will soar,
You will enjoy your learning!
Example:
Today, I learned several functions from the
Syntax
Str_pad (string, length, pad_string, pad_type)
Parameter description
String is required. Specifies the string to be filled.
Length is required. Specify the length of the new string. If the value is smaller than the length of the original
The following is the original description and default configuration in PHP. ini:
; Open_basedir, if set, limits all file operations to the defined directory
; And below. This directive makes most sense if used in a per-directory or
; Per-virtualhost
I. First, PHP webpage code 1. The php file encoding should match the webpage encoding.
A. if you want to use gb2312 encoding, PHP needs to output the header: Header ("Content-Type: text/html; charset = gb2312 ″), add to the static page. All files
1. Usage: Find. py directory name
2. Python regular expressions are used for matching. You can add your own defined Regular Expressions in keywords. The format is as follows:
["Eval \ (\ $ \ _ post", "found a PHP Trojan! "] # The regular expression
My PHP Regular Expression entry is an article on the Internet. This article explains the PHP regular expression method from a simple perspective. I think it is a good entry-level material, however, it is still dependent on the individual who will
Serializing)
PHP does not support permanent objects. in OOP, permanent objects are objects that can maintain the state and function in the references of multiple applications, this means that the object can be saved to a file or database, and
Version:
Php-5.3.0-Win32-VC9-x86.zipApache_2.2.11-win32-x86-no_ssl.msiPhpMyAdmin-3.2.1-rc1-all-languages.zipMysql-5.4.1-beta-win32.msiPHP
Decompress php-5.3.0-win32-vc9-x86.zip and name it PHP and put it on the E: disk (you like it ).Copy all *. dll
Compared with ADODB and MDB2, PDO is more efficient. At present, there is a long way to implement the "database abstraction layer". Using the "database access abstraction layer" such as PDO is a good choice.
PDO-> beginTransaction ()-indicates the
Configure the php. ini file (for example, upload a file smaller than MB)
Search for the following options and modify them.
File_uploads = On; enable the File Upload Option
Upload_max_filesize = 500 M; Maximum number of uploaded files
If you
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