Ext.: http://my.oschina.net/VincentJiang/blog/224993
CENTOS 6.5 configuration Yum installation Nginx
The first step is to
/etc/yum.repos.d/
create a source configuration file under the directory
One, IP-based
1. Assume that the server has an IP address of 192.168.1.10, use Ifconfig to bind 3 IPs on the same network interface eth0:
[Root@localhost root]# ifconfig eth0:1 192.168.1.11[Root@localhost root]# ifconfig eth0:2
Interest-Related: All the following words represent only personal opinions and do not represent the interests of the Organization as a whole.
I am a junior dog, self-study PHP time has been almost two years, feel oneself is an entry-level
Cookie Introduction
Cookies are data stored in the client's browser, and we use cookies to track and store user data. In general, cookies are returned from the server to the client via HTTP headers. Most Web programs support the operation of
The last few articles describe the installation and use of Redis, and here's how to add a redis extension to PHP!
The PHP manual does not provide the Redis classes and methods, and does not provide the relevant extension modules, but we can
Excel table F column is a long number, such as 2015072708542427700014133717 will become 201507270854242770001410000 after export
Internet search solution, the first scenario is to set the F column as a string, as follows
$objPHPExcel = new Phpexcel
At the beginning, when I connected with the server, this was written.
Result error This app isn't authorised
It turns out that when you connect to a server, you should connect
$link =mysql_connect (sae_mysql_host_m. ': ').
First of all, talk about your own understanding.
The so-called virtual host, is said through a number of different URL addresses, can reach the nginx environment, but for different URLs, processing logic is different. nginx support Virtual
If it is the Discuz forum of some small-style pictures, only need to upgrade the Forum Discuz forum or, directly the entire site of the first domain name of the CSS, such as the 127.0.0.1:8080/. The beginning of the whole thing changed to 127.0.0.1:8
/** * Returns the contents of the file from the X line to the Y line (supports PHP5, PHP4) * @param string $filename file name * @param int $startLine The number of lines beginning * @param int $endLine end of line Number * @return string
PHP $_server[' Script_filename ' and __file__
Typically, PHP $_server[' script_filename ' and __file__ will return the full path (absolute path) and file name of the PHP file:
'; Echo ' __file__: ', __file__;? >
Copy the above test code to test.
1. Optimize data type
There are several types of data in MySQL, and if you are a DBA, you are rigorously checking the data types according to the principles of optimization, but developers may choose what they think is the simplest
PHP 5.3 or later, using the pthreads PHP extension, you can make PHP really support multi-threading. Multithreading in the processing of repetitive cyclic tasks, can greatly shorten the program execution time.
as I said in my previous article,
ngx_queue_t doubly linked list
Structure
typedefstruct ngx_queue_s ngx_queue_t;typedefstruct ngx_queue_s { ngx_queue_t *prev; ngx_queue_t *next;};
The structure of the whole list is: There is an empty head, this head is used as the start of
these days to write the project, encountered a problem, the general file download is ok to say, but if it is Chinese and there are many formats of file download is more tricky, a long time the bug,
Finally completed, the following points need to be
$a = 1; /* global scope */function Test(){ echo $a; /* reference to local scope variable */}Test();?>
This script will not have any output, because the Echo statement refers to a local version of the variable $a , and within that range, it is not
PHP code to implement the download function, download files from the server to Local:
Public Function downloadtemplateaction ()
{
define (' z_web_root ', ' http://' $_server[' server_name ');--------host
$file _name = "template.xlsx";
$file
1. Review: The previous article learned about PHP inheritance, properties and static properties
2. This article will learn about PHP's class constants, automatically loading classes, constructors, and destructors
3. Class constants
(1) Constant
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