A concept:
Cgi
CGI (Common Gateway Interface), Universal Gateway interface. The protocol used when interacting between Web servers (such as Nginx) and script parsers (such as php-cgi). It specifies how the data such as the requested URL, HTTP
PHP supports 8 types of raw data. four types of scalar:? Boolean (Boolean)? Integer (integer type)? Float (floating point, also called double). String (String)Two types of composite:? Array (arrays)? Object (Objects)Finally, there are two special
First, "one-to-many" relationship
Table Shop (i)
Table Comment (Multi)
Save with SHOP_ID
Second, we first to manually generate shop and comment relationship
First case (can be generated)
Controller in
Tables can be generated,
/**The class name Smarty is a custom template engineThe template file is loaded and parsed by the class object, and the parsed result is output*/Class Smarty {Public $template _dir = ' templates '; Define the directory where template files are
1. Open the new Site menu
Opens the Dreamweaver CS6 software, where you can see the Site menu bar on the navigation of the Dreamweaver CS6 software interface. Click Site, and then select the new Site submenu on the pop-up menu.
2. Add Server
The content of this section:
The advantages and disadvantages of Nginx and Apache
The advantages of nginx in relation to Apache:Lightweight, similarly web service, consumes less memory and resources than Apache serversAnti-concurrency, nginx in
YII2 Implementing the Change Password functionMain difficulties:1. Password encryptionYII2 The result of password encryption is different, that is, with the same initial password at different times to obtain the encryption results are different, so
In the development of this generation of QR code extension dcode, the resulting QR code PNG image will be returned to the caller as a string, rather than directly generated files, it is convenient to do not have to manipulate the file, the operation
Query ("$sql");//}//Create a new ID storage table, in fact, there is no need to call ID, if the business volume of large by month day also line, by increment also line. CREATE TABLE ' Test '. ' create_id ' (' ID ' BIGINT () not NULL auto_increment
Nginx
as the most popular open source reverse proxy
HTTP Server
, which is used to implement resource caching,
Web Server
load balancing functions, due to its lightweight, high performance, high reliability and other features in
InternetThe project
$image = new Imagick ($url);
$image->blurimage ($x, $y);
Call the Blurimage ($x, $y) function for an error:
The reason is: the original picture is CMYK is the printing mode. The RGB display mode is useful!!!!!!!!!!!
GLIBC detected * *
Product Automatic Update ideas
1. (user) User initiated raw
2, (System) connection server side, send the current version number
3, (server-side) detection data, for the latest version is returned 1, the reverse is the following processing:
The
First, Introduction
Gearman is a tool that can delegate work to other machines or processes.Website address: http://gearman.org/
Gearman usually consists of three parts, client+worker+ task server, the worker executes the job sent by the client,
Current To-do List
'; foreach ($parent as $task _id = $todo) {echo
$todoEOT; if (Isset ($tasks [$task _id])) {//If the current ID has subtasks, the menu make_list is created recursively ($tasks [$task _id]); } echo ""; } Echo ''; }
Php:Open source Net purchase frame inside, recommend a frame called Iwebshop, before build once, feel very good to use.http://www.aircheng.com/URL as above.
Iwebshop is a b2c2c (single user + multi-user) open-source online store system, based on
OO programming (Object Oriented programming, OOP, object-oriented programming) is a computer programming architecture, and one of the basic principles of OOP is that a computer program is composed of a single unit or object that can act as a
PHP Version Processing class
For example, recording the app version, or some version of the data, if you use 1.0.0 this version format to record the storage, when you need to filter the query will be more troublesome.Instead of converting the
When you create a new page, you add a route to the page in the appropriate global.php file and add the appropriate action to the controller.
Route code:
'cat-types'array( 'type''segment', 'options'array(
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