Create the Vhosts directory under the Conf directory and create the site's configuration file, taking examples.com.conf as an example.
The code is as follows
Copy Code
[Root@localhost ~]#
PHP, Nginx are all installed, configured for a long time is not right. It's just a good whole.
Nginx.conf began to be
server {listen 8080;
server_name localhost;
#charset Koi8-r;
Access_log Logs/host.access.log Main;
1, use the Pathinfo:pathinfo () function to return the file path information as an array.
results are as follows
Array
(
[dirname] => http://localhost//url path
[basename] => index.php//full file name
[extension] => PHP//filename
1. Create an array
In programming languages, values and strings are called scalar variables, and a scalar variable can only represent a single numeric value or string. For example, $YDTX = the variable $ydtx in "mobile communication" is a scalar
The server provides a file download, typically using a URL pointing to a file in the server to provide downloads.
But this can not be statistics, permission detection and other operations.
Therefore, the general use of PHP to provide downloads, the
First, download Phpmailer
Https://github.com/chenlian2015/phpmailer.git
Two. Will download the contents of the
class.phpmailer.php
class.smtp.php
Two copies of files to your engineering directory
Three. Use
charset = "GBK";//Set the message code,
First, we introduce the function of Str_split ().
Its role is to split the string into arrays;
For example:
$str = ' ABCDE ';
Str_plite ($STR);
The results printed are as follows:
Array
(
[0] => a
[1] => b
[2] => C
[3] => D
[4] => E
)
It seems to
File downloads are simple:
You can use hyperlinks in HTML to jump to a file for downloading:
Download ';? >
The use method is the user directly clicks the hyperlink in the browser.
But this download method has some problems: some browsers can
PHP page jumps several implementation tips
In a web system, jumping from one Web page to another is one of the most commonly used techniques in the lamp project. Page jumps may be caused by a user clicking on a link, a button, or a system is
Hash table conflict between PHP core technology and best practices
Then, after the test, the output value1value2. When
$ht->insert (' key12 ', ' value12 ');
Echo $ht->find (' key12 ');
Found output value12value12. What's the reason?
This problem is
PHP core technology and best practices in reverse reference to regular expressions
A reverse reference is used to repeat the search for text that matches a previous grouping. For example: "\1" represents grouped 1 matching text:
\b (\w+) \b\s+\1\b
There are several types of PHPHow the various types of PHP are convertedPHP input and output modePHP Type: 4 kinds of scalar types Int,float,string,bool2 types of composite Array object2 special types of resource nullPHP has no underfinedThe
Today finally have time to think oneself took a set of LNMP development environment, as a result of the previous development environment are the company's existing, the use of the time to change the configuration on the OK, feel very relaxed, but
Preface
There are two modes of communication between Nginx and FastCGI, one is TCP and the other is UNIX Socke. Each of the two methods have advantages and disadvantages, here first gives two kinds of configuration methods, and then the performance,
Although always use Git to do version management, has used the deployment of GIT projects, but did not adhere to this habit, so many times or directly upload files to the server. Know that this is not a good habit. So the way and the steps of Git
Cookies Operation class
function:
1. Save, read, update, and erase cookies data.
2. You can set a prefix.
3. Force timeout control.
4.cookies data can be strings, arrays, objects, and so on.
Cookies.class.php
_prefix = $prefix;
} if
The test server is built using a key installation package lnmp.org (V1.4), and then read the file error Fileinfo_open can not be used to find out because the expansion is not installed.
View installed extensions: Enter the bin directory under the
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