The ultimate goal of PHP is to create pure HTML files, and this pure HTML file is stored in the server's disk;
PHP implementation of the page to achieve pure static things:
1. File Write function
File_put_contents (), or fopen (), fwrite (),
PHP Connection Pool issues & Load BalancingProblems with the PHP connection pool:
The PHP script itself does not do the connection pool, because the PHP script will release all the memory resources after the interpretation, of course, the database
the choice of communication mechanism
Nginx and PHP-FPM are using either a TCP socket or a UNIX socket. reasonable Configuration Nginx processing request number
#cat/proc/cpuinfo | grep processor #查看服务器cpu的处理器数量
#
Transferred from http://www.myexception.cn/other/1825518.htmlPlease inform me if infringement is involved, I will delete it immediately.
In recent years there has been a wave of popular writing in all parts of the world, and even U.S. President
When we log in to the site management backstage, there will be prompted to remember the status of login, remember me and so on, this option is what to use it. If you check the log in state, the next time you browse the Web site does not need to fill
The name of the function
Interpretation
Introduced
Htmlspecialchars
Converts to HTML format with, single double quotes, greater than and less than
& Turn "Turn into "' Turn into & #039;> Turn >
1. The communication interface has two kinds of data structure XML and JSON, their difference:
Xml
Json
1. Readability
Strong
Weak
2. Generate Data speed
Weak
Strong
3.
four ways in which PHP stores an array in a database
recently encountered a problem, how to use PHP to store the array in the database, through their own multi-party search and research, summed up the following four methods:
1.implode () and
Deprecated:function set_magic_quotes_runtime () is deprecated error in installation phpcms, checked network and data found PHP5.3 and PHP6.0 removed set_magic _quotes_runtime () function.
Set_magic_quotes_runtime (0) function interpretationIn the
ORM: (object/relation Mapping Object Relational mapping) the most famous ORM model should be the JAVA hibernate. ORM Basic Concepts:
Object-Relational mapping (relational Mapping, or ORM) is a technique for solving the mismatch between
PHP source code Compilation installation Configuration
Download Address
http://php.net/downloads.php
CentOS under preloaded dependencies, specific to their corresponding add general conditions below enough
Yum install gcc make gd-devel
Don't say anything, directly on the code. If you can not understand the following and I leave a message.
First look at the service side: the use of PHP language, deployed in the Sina SAE server (with the database)
Put all the PHP files in the same
The first time you install Nginx, the installation is complete and the thinkphp is found to be unable to run. After consulting the relevant information, it is resolved by the following methods:
Configure Nginx PathInfo Support:
After the original
"; echo $msg;} /** Database Configuration */$mysql _server_name = "localhost"; Change to your MySQL database server $mysql_username = "root"; Change to your MySQL database user name $mysql_password = ""; Change to your MySQL database password $mysql_
1. JavaScript function Type:(a), the first kindfunction Test (param) { return 111;}(ii), the second type ofvar function (param) { return 222;}Note: Inside the applet is param:function () {}This is actually the same wording!(iii), the third
Server Load balancer instancesAlgorithmThere are many such algorithms as round robin, hash, least connection, response time, and weighted). Hash algorithms are the most commonly used algorithms.
A typical application scenario is that there are n
Machine environment rhel3: Some RPM packages, such as GCC and make, are installed during system installation.
1. install Apache
1. Download Apache
2. Extract
Tar-xzvf httpd-2.0.63.tar.gz
3. Enter the Directory
CD httpd-2.0.63
4.
PHP extension (EXT) Compilation can be divided into two types: separate compilation and kernel compilation. the extension of compiling PHP separately has greatly improved the flexibility of PHP configuration. For example, you can compile the
In many forms, you need to enter a date. The common practice is to give three drop-down boxes and select year, month, and day respectively.Here, we will use a text edit box to set the date. If you select the date function, a calendar window will pop
// clear the cache header ("Pragma: No-Cache "); // set the expiration time header ("expires: 0"); header ("cache-component: Must-revalidate, post-check = 0, pre-check = 0 "); // set the downloaded character set header (" Content-Type:
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