Because it is only the development environment, so is to choose a relatively simple apt-get installation method, but also encountered a little problem in the middle.
First install Nginx
Nginx installation and configuration is actually very simple,
Backup: The table structure and data are completely separated, the default one file will record all the structure of the table, and then the data in the table backup if the size of the volume will be divided into multiple files, or a file, referring
The template engine is a program for merging template files and data content so that Web development facilitates code separation and maintenance, and knowing that a template best knows how it works to achieve a wantong.
Template files are generally
What is curl?
A file transfer tool that works by using URL syntax to love command-line mode. It supports many protocols. It supports authentication functions. More complex transfer functions are commonly implemented in PHP.
The functions implemented:
I looked at the method of using Phpexcel to export data to an Excel file, but it seems more complicated. Icech found a class for CodeIgniter: Ci-excel-generation-library, the use of the method is very simple.
1. Download
PHP + jQuery Ajax File upload instance. Because see some friends ask how to implement the PHP environment in the Web page upload function, I have just used the Jquery_upload_multiple upload plug-in these days, so here the usage to everyone to
The content of this section:
A class for a PHP export document
Example:Copy the Code code as follows:
/*** Class for generating Word documents**/Class Word{function Start (){Ob_start ();Echo 'xmlns:w=
principle
Generally, there are 2 ways to export doc documents, one is to use COM, and as an extension of PHP to install to the server, and then create a COM, call its methods. Servers that have installed Office can call a COM called
Sometimes in the project we need to use PHP to encrypt specific information, that is, through the encryption algorithm to generate an encrypted string, the encrypted string can be decrypted by the decryption algorithm, so that the program to process
We first discuss the Password_hash () function. This will be used as a hash value for creating a new password. It contains three parameters: password, hash algorithm, options. The first two items are required. You can use this function according to
When we want to number a large amount of data, and the number has a number of digits limit, such as 5-digit license plate number, 10-bit ID number, order serial number, short URL, etc., we can use the 36 binary to calculate the number of
Copy CodeThe code is as follows:
Formatted date
static function FormatDate ($format, $datetime, $week = 0) {
$datetime = $datetime > 3000? $datetime: Strtotime ($datetime);
if ($week) {
$weeknames = [
' Day ',
' One ',
' Two ',
' Three ',
' Four ',
'
Example code, using the function substr and ICONV_SUBSTR,MB_SUBSTR
Copy the Code code as follows:
Intercept Chinese string script home _www.jb51.net
$STR = ' 123 Script House 456 welcome everyone's presence ';Echo substr ($str, 0,4);Echo
The functions implemented:
1. Realize remote acquisition and acquisition of content
2, the implementation of PHP Web version of the FTP upload download
3, realize the simulation landing: Go to a mail system, curl can simulate cookies
4, to achieve
In fact, the God Shield decryption is not so interested, just see the author of the tool and encryption, feel uncomfortable. Research, in fact, decryption is not so complicated.
With the PHP_APD extension it's easy to get this done. There are only
Using system commands is a risky operation, especially if you are trying to use remote data to construct a command to execute. If the contaminated data is used, the command injection vulnerability is generated.
EXEC () is a function for executing
Copy CodeThe code is as follows:
Heap Sort Application
Class Heapsort
{
var $a;
function SetArray ($a)//Get array
{
$this->a= $a;
}
function Runvalue ($b, $c)//$a represents an array, $b represents the sort heap, $c represents the end
PHP Regular Expressions Common functions, PHP regular Expression function
1. Preg_match ()
Function prototype: int Preg_match (String $pattern, String $content [, array $matches])The Preg_match () function searches the $content string for content
Destoon system for us to provide a few sets of default home page templates, if not satisfied with our own to create a template, let us first look at the system in the company template involved in several key locations.
The company homepage template
Php+fastcgi+nginx Configure PHP Runtime environment, Fastcginginx
The CGI English is all called Common Gateway Interface (Public Gateway Interface), is the Nginx and the dynamic Script program bridge, Nginx sends the dynamic request through 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