configuration file path for 1.nginx
In general, when installing Nginx, the default path for the configuration file is/usr/local/nginx/conf/nginx.conf.
We can use a link file to point the Conf directory to a specific directory for easy
PHP in today's unfamiliar network technical terminology, think of the Web site or the Web may most developers will think of PHP, a free and open source, both easy and practical and some other benefits to have the world's many IT technical staff, I
PHP has a very simple garbage collector that actually garbage collects objects that are no longer in the memory scope (scope). The internal way of garbage collection is to use a reference counter, so when the counter reaches 0 o'clock (meaning that
1. Why does PHP need to operate asynchronously?
In general, the application of PHP is a Web page display and other time-consuming tasks, if the comparison takes time to operate such as resize pictures, Big Data import, Batch send EDM, SMS, etc.,
In the database tutorial design, you must note that the Time field is int (11) So, the database is saved in a numeric date time stamp, we can use the Mktime function to find the current date of time stamp to add and subtract is OK, see the example
File handling functions
1. File operation.Open File:
The corresponding object is returned when the specified file is opened, and may be created automatically if the specified file does not exist.
Resource fopen (string filename,string mode [, int
The company project needs to send the mail through the background, the message content includes the picture attachment. If sent through Phpmailer, because the mail server may have a delay, send mail through Phpmailer, you need to wait for the
A recent project has a requirement to extract the first letter of each word in a Chinese-English (including Arabic numerals 0-9) Sea-quantifier library:
Gannicus-->g
Free-->z
2b-->e
Silly X-->s.Copy CodeThe code is as follows:Private function
1> if ("false") is equivalent to if (true), because a non-empty string is true
2> Check Data type:
Is_array ();
Is_object ();
Is_string ();
Is_null ();
Is_integer ();
3> PHP5 introduces the type hint (type hint) of a class to constrain the parameter
A. Download
First, let's get the information down first.
If you do not need to transfer to Chinese, just download it can: Xpdf-bin-linux-3.03.tar, if you need to transfer Chinese, then you need it: Xpdf-chinese-simplified.tar
two. Installation
Instructions for use
First look at the description of the Levenshtein () function on the manual:
The Levenshtein () function returns the Levenshtein distance between two strings.
Levenshtein distance, also known as the editing distance, refers to
At first, I wanted to block the URL of the PHP suffix from being accessed directly in the rewrite rule. But later found that rewrite rules are recursive calls, if the rewrite rules directly prohibit PHP, then the rewrite to the PHP file rules will
Copy CodeThe code is as follows:
$link = Array (
' Baidu, http://www.baidu.com/',
' Server software, http://s.jb51.net/',
' Script house, http://www.jb51.net/',
);
$STR = ' Search Server Software in Baidu to provide software to the Scripting House
We have already learned the basic syntax of regular expressions, including delimiters, atoms, metacharacters, and pattern modifiers. In fact, if the regular expression wants to function, it must be borrowed from the regular expression handler. In
A small line of change, in fact, different platforms have different implementations, why this, can be the world is diverse. Originally in the UNIX world to replace the line with/n instead, but windows in order to reflect his differences, the use
I. Using the DOM to generate and read XML files
Example one:
Copy CodeThe code is as follows:
Creates XML string and XML document using the DOM
$dom = new DomDocument (' 1.0 ');
Add root-
$books = $dom->appendchild ($dom->createelement_x_x ('
In the process of writing PHP files, found in the browser preview PHP files, the top will appear a line of blank, affecting the layout of the page.
the explanation of the BOM header is as follows:
Typically, you write a Web program using a
How to use __autoload 1:
The most common use of this method, according to the class name, find the class file, and then Require_one
Copy CodeThe code is as follows:
function __autoload ($class _name) {
$path = Str_replace (' _ ', '/', $class _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