Xml
Knowledge Summary
Structure of XML
Document declaration:
element: (Tag tag)
Element properties
An element can have more than one property
Attribute values must be quoted in quotation marks ( single or double quotation marks ) .
The naming
LNMP after installing the package on one click, it is found that thinkphp's PathInfo mode is not available.
Baidu, found nginx/conf/vhost/domain name file has opened PathInfo instructions, so started the pathinfo.
But the project still didn't work,
Recently new contact mobile App server-side development, in the initial stage, to do some records.
1. How to communicate with the server database under the Android platform
in the Android platform, connected to the computer server MySQL ,
Function
Describe
Connection_aborted ()
Check to see if the client is disconnected.
Connection_status ()
Returns the current connection status.
Connection_timeout ()
Deprecated in PHP 4.0.5.
basic functions of array manipulation
1, the key name and value of the array
array_values ($arr); Get the value of an array
Array_keys ($arr); Gets the key name of the array
Array_flip ($arr); the values in the array are exchanged with the key
1. Delete the hyperlinks in the content
Ereg_replace (']*) > ([^
Ereg_replace ("]*>|", "", $content);
2. Eliminate hyperlinks that contain specific words
$find = "This string is my find";$string = ' replaced ';//To replace the hyperlink with
Constants
1, the composition of the constant = constant Name + constant value
Constant name: A combination of [a-za-z0-9_], and the number can not be started, case-sensitive, recommended capitalization
Constant value: Assignable data
1. Download:
Http://nginx.org/download/nginx-1.8.0.zip
2. Unzip to:
d:/nginx-1.8.0
3. Run the command:
CD Nginxstart Nginx
Visit 127.0.0.1 and you're ready.
Common commands:
Nginx-s Stop// stop nginxnginx-s Reload //reload config
1,nginx Error cannot find location generally need to modify/usr/local/nginx/conf/nginx.conf (careful modification may cause other website problems)
2,502 Error
Situation 1:nginx hung off:
Command:/usr/local/nginx/sbin/nginx-s Reload
And wait for a
A weiphp framework application (called a) was built on the Sina SAE, and a wall function was made to display the wall content through a front-end Web page rather than through the weiphp framework. This requires that the database used by the weiphp
PHP does not understand a lot of PHP 0, "", the difference between null and false, these differences can sometimes affect the correctness and security of data judgment, the test run of the program caused a lot of trouble.
Let's look at an example:
recently encountered a strange thing, the first two days to write a good code, today again run is garbled. Checked, not the general meaning of garbled, but the return of Unicode encoded characters.
such as Kanji: Login failed, after Json_encode
Download Zookeeper dependent libraries:
http://apache.fayea.com/zookeeper/zookeeper-3.4.6/
Extract
TAR-ZXF zookeeper-3.4.6.tar.gz
CD zookeeper-3.4.6/src/c
Installation
./configure--prefix=/usr/local/zookeeper/zookeeper-3.4.6/
Make & make
Take note of the two ways PHP connects to MySQL.
Mock the data first, you can execute SQL.
/* Create a database */ CREATE DATABASE IF not EXISTS ' test '; /* Select Database */ Use ' test '; /* Create a table */ CREATE TABLE IF not EXISTS 'user'
1. Time zone settings
Method One: Set the Date.timezone=asia/hong_kong of the php.ini, so that the system default time is East 8 zone
Method Two: Use the function Date_default_timezone_set () to set the time zone to Date_default_timezone_set
Recent frequent use of the CI framework, which is primarily about background development, focuses on sharing a little summary of the model and controller layers:
1. When it comes to interactive databases, we first add the connection information for
recently learned a few
MVC
of the
PHP Framework
, two of which are inside the company. Discover that these things are similar, from processing logic to page rendering;
Service
to the
Layout
, the implementation of the configuration is nothing more
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