The starting point for using the single case pattern:
1, the application of PHP is mainly in the database application, so an application will have a large number of database operations, the use of single case mode, you can avoid a large number of
tmpl_deny_php this argument to false try the config file
' tmpl_deny_php ' => false,///The default template engine disables PHP native code
PHP code can be mixed with tags in template files, you can write arbitrary PHP statement code in the
Transferred from Http://www.jb51.net/article/22501.htm
PHP header to define a PHP page for UTF encoding or GBK coded PHP page for UTF encodingHeader ("content-type:text/html; Charset=utf-8 ");PHP page for GBK encodingHeader ("content-type:text/html;
Get Root method:
This sentence is placed in the root directory include/base.inc, 7 refers to the include length
Define (' M_root ', substr (DirName (__file__), 0,-7));
This is better to write, directory name length change is also valid. DirName
Serialize () and unserialize() are explained in the PHP manual:
Serialize -generates a storable representation of a value
Serialize -represents a value that can be stored
unserialize -creates A PHP value from a stored
Cookies are client-side technology, and the server writes each user's data to the user's browser in the form of a cookie. When users use the browser to access the server's Web resources again, they carry their own data, so that the Web resources
Here to configure 2 sites (2 domain names) For example, n sites can increase the adjustment, assuming:
IP Address: 202.55.1.100
Domain 1 example1.com placed in/www/example1
The basic ideas and steps for configuring Nginx virtual hosting are as
Making Mirrors
1. Download CentOS image
Docker Pull Centos:latest
CentOS version of download is 7.3
2. Start a container by CentOS mirroring
Docker Run-i-T Centos/bin/bash
3. Install the required environment in the container
Reference: Install
To open the Apache Server installation path (I'm using wampserver), there is a Ab.exe executable program in the bin directory, which is the stress test tool to introduce.
Under the Windows System command line, enter the directory where the
Reprint article Source: http://www.linuxidc.com/Linux/2017-02/140777.htm (if invasion delete)
The full text reads as follows:
Company a test server, recently appeared 504 and 502 Problems: (Environment lnmp,php compile installation, fastcgi mode),
introduction of Appserv software
Appserv is a PHP Web site tool combination package, the author will be a number of free network of station resources repackaged into a single installation program to facilitate beginners to quickly complete the stand,
Since the upgrade of Chrome, inadvertently found that the console under the total annoying tips, is CNZZ statistics.
Look, the current version of Chrome is: Version 56.0.2924.87
To be exact, this annoying CNZZ content tip is as follows:
A
Just in contact with PHP, you need to do a simple project.Project BackgroundSchool teachers more or less need to count the students of various materials, in addition to such as questionnaires, gold data such as the third party platform, the school
I was built in the CENTOS5 environment of the Nginx server, using the PHP-FPM way to drive PHP, the following description of the use of the configuration process.
Environment:
Operating system: CentOS 5
nginx-1.0.12
php-5.3.10
1. Install php-5.3.10
when we develop the app interface, we often need to process HTML Rich text strings, with many useful functions in PHP for us to use
functions you need to use:Str_replace () string replaces Html_entity_decode () HTML string to HTML tag strip_tags ()
1 using the browser to access the interface address (new Corn.bat file, the contents are as follows) "C:\Program files\internet Explorer\iexplore.exe" http://www.baidu.com The front is the path of the browser, need to quote, followed by the
It is often seen that some video stations show a video, how many days ago, how many minutes ago, and how many years ago,
In fact, it is easy to implement. The following is a function:
Include_once ('timeago. php ');$ Cur_time1 = "1291684422"; //
Commonly used array functions in PHPArray skills sometimes solve many problems. You can get twice the result with familiarity with related functions.Are you familiar with the following array functions?
I. basic functions of Array OperationsKey name
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