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
yesterday used PHP to write a processing CSV file applet, on the local and 21 server above the normal processing
But the night on the 238 server found that the program handles the exception, some data is missing.
When the exception is processed,
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 ,
One, the order
git checkout-b branch name//Create branch and switch to that branch
Git checkout branch name//switch to this branch
Git merge branch name//merge branch into current branch
git branch-d branch name//delete this branch
git branch-d
In PHP, there are also related functions for path operations.
1, Parse_url
This method obtains the most detailed information, can get to Schme, host, path, etc., this function is necessary to know, detailed usage can find
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
Summary:
This tutorial shows you how to set up a development environment on a Windows or Macintosh computer to build a PHP Web application using Adobe Dreamweaver and the MySQL database server. Setting up a PHP development environment for
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:
Execute multiple SQL commands at once using the Multi_query () method in the Mysqli object.
Specific practices:
Write multiple SQL commands in the same string as arguments to the Multi_query () method, separating multiple SQL with semicolons (;).
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
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
Form:http://www.uphtm.com/php/253.html
This thing in fact, we are commonly used by developers, used to do a crawl other website friendship connection used, and today saw a friend organized a PHP get the specified URL page of all the link functions,
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