Learning for so long PHP, basic knowledge always feel insecure, especially the array, string function application, all hands knocked over the hand, make summary is the basis, in retrospect.
one. PHP Basics Syntax
variables, constants
After registering the domain name, often needs to realize different two level domain name to visit the different node of the site
The general domain name registers the organization to provide the CNAME the analytic way, may the two level domain
PHP Construction Method __construct ()
the PHP constructor Method __construct () allows the constructor method to be executed before instantiating a class. Construction Method
A construction method is a special method in a class. When you create
Run through the background, the detection of the problem is restarted. The script code is very few, the statement is very simple, consumes the system resource very low, may try.Feel very stupid method, but effective, hehe ~
#!/bin/bash
#check
Get_magic_quotes_gpc
Get PHP environment variable MAGIC_QUOTES_GPC value, belong to PHP system function.
Syntax: Long get_magic_quotes_gpc (void);
Return value: Long integer
This function does something.
This function obtains the PHP
Learn about how Apache is associated with PHP before you know the PHP lifecycle.
analysis of 1.Apache operation mechanism
-----------------------------
The overall schematic is as follows:
Apache hook mechanism Apache hook mechanism
0. Preface
Looking at the dark cloud Knowledge base, I saw an interesting translation: http://drops.wooyun.org/papers/4820.
is a kind of injection, called object injection. Objects can also be injected.
Yes, as long as there is pollution data,
Two places were modified
1 adds a limit for getting the length
2 The head sends the data to add some parameter, lest by the opposite party server thinks is collects and directly rejects.
File Address:
Turn from: https://www.zybuluo.com/phper/note/89081
In the previous few, I described in detail the various introductions of PHP-FPM, and the installation. Take a look at the various configurations of its profile php-fpm and some common
__autoload
./myclass.php
/index.php
$filename = "./". $classname. ". PHP ";
Include_once ($filename);
We ' ve called a class * * * *
$obj = new MyClass ();
? >
Spl_autoload_register
Load the class in 2 ways:
Mode one:
For example,
How much do you know about TS and nts in PHP?
1. Introduction
TS (thread-safety) is thread-safe, multithreading access, the use of the lock mechanism, when a thread access to a class of data, to protect, other
Threads cannot be accessed until the
1. What is Docker?
Docker is an Open-source project that is a tool for automating the deployment of an application environment within a software container by providing an abstraction and automation add-on layer on a Linux virtual machine. Docker
1. Idiom Error correction (15 points)
Problem Background
Idioms are the cultural treasures of the Chinese nation, as a microcosm of history, the crystallization of wisdom, the essence of Chinese language, flashing a bright light.
Your task is to
What is a design pattern:
Design patterns are a template that teaches you how to organize your code using a truly reliable design.
All design patterns have some common features: an identifier (a name), a problem statement (a problem statement),
These days to learn PHP, feel the preparation of complex, if the former me, almost to give up.
Today learning to use phpmyadmin tools, encountered a mistake, Baidu did not find the answer, only found a forum someone asked me the same question, but
The installation of Apache under Linux
1, into the work directory: Cd/usr/local/work
(If not the new, command: mkdir/usr/local/work)
2, in the work directory download Apache from the website and decompression:
wget
In terms of general conventions, the names of classes, functions, and variables should be able to make it easy for code readers to know the role of the code, and should avoid the use of the name of the Ling ambiguous.1. Class namingUse uppercase
(1) According to my top two blog "How Mac Installs Xampp", "Eclipse Configures the PHP development environment". Configure the PHP development environment and server.
(2) Switch workspace, must be the development of PHP workspace switch to the
1. The name of the variable begins with the $ symbol, and the reference is also $ (except constants);
2. PHP is a weakly typed language, which automatically converts the variable to the correct data type based on the value of the variable;
3. PHP
Note: $pattren Regular expression$subject Matching Target data
Note: (1) Pre_match matches only once, and Pre_match_all matches all (2) The former is a one-dimensional array, while the latter is a two-dimensional array (3) function return value
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