One, DB SQL statements
DB Used for PHP infinite classificationCREATE TABLE Tree (ID Int (TEN) NOT null primary key auto_increment,Name varchar (255) NOT NULL,LFT Int (a) not null default 0,RGT Int (a) not null default 0,status int (1) NOT null
Set up ideas
1, user registration needs to provide an e-mail mailbox, the purpose is to use the mailbox to retrieve the password.
2, when the user forgets the password or the user name, clicks the login page "retrieves the password" the hyperlink,
The following is an article on basic document reading and writing operations, I used to read this article after the basic operation of the document, issued to share with everyone: copy content to the Clipboard
The code is as follows
PHP If ... Else Simple Tutorial
, if ElseIf's reports and other PHP are used to perform different actions, depending on the conditions.-------------------------------------------------- ------------------------------Conditional statementOften
lib2.php
to understand several PHP namespace-related terms before starting.
Fully qualified name (fully-qualified name)
Any PHP code can refer to a fully qualified name, which is an identifier that begins with a namespace backslash, such as
The code is as follows
Copy Code
The collection of two arrays$arr 1 = Array (' A ', ' B ', ' C ', ' d ', ' e ', ' f ');$arr 2 = Array (' A ', ' a ', ' e ', ' A ', ' P ', ' a ', ' a ', ' e ');$arr 2 = Array (' A ', ' a ', ' a ', ' a ')
086-area code-number-Ext^086-[1-9][0-9]{1,4}-[1-9][0-9]{4,7}-[0-9]{3,4}$
2G's cell phone number is almost all 13.
The code is as follows
Copy Code
$mobilephone =trim ($_post["Smmobilephone"]);Regular verification of
PHP defines PHP code run timeDefinitions and usageThe Time_sleep_until () function delays code execution until the specified time.
GrammarTime_sleep_until (timestamp)
Parameter descriptionTimestamp required. Time stamp when the script wakes up.
After compiling the installation PHP-FPM, the default is not to turn on automatic startup, and some configuration is required to boot.
Execute VIM/ETC/INIT.D/PHP-FPM The following new content:
#!/bin/sh## Php-fpm-this script starts and stops the
Recently, their own use of vacation time to learn PHP, perhaps we do not know what PHP is? PHP is a web-embedded language, just like asp,jsp, which should be the easiest language to learn in programming. A few years ago, when I was on the Yeda, the
1. Meaning of the single-state design model:The main function of the single-state mode is to ensure that only one instance object exists in a class in the object-oriented programming design. As the object creation mode, the singleton mode ensures
Let's take a look at how to get the first letter of a single Chinese character. See the following function. It supports GBK and UTF8 encoding: The code is as follows:Copy code Function getfirstchar ($ s0 ){$ Fchar = ord ($ s0 {0 });If ($ fchar> =
PHP can open Socket ports on a remote or local host. This article is a small example of using Socket: connectionConnect to a Usenet newsgroup server, talk to the server, and download some articles from the newsgroup.Open a socket in phpUse fsockopen
Its Project address: php Tutorial-debug-tools/"> http://freshmeat.net/projects/php-debug-tools/File Download Address: http://freshmeat.net/urls/7c58ae3fecce5763e7546b958d36e082Version 1.03The environment here is Windows xp, apache2.2, php5.2 + zend
Free php space: free php space supportedFreehostinn has industry-leading features. You can build a website and surpass your competitors to see some of them:MB disk space (capacity! )50 thousand bandwidth (50 GB! ).No advertisement on your
The code segment is found when I search for related solutions on the internet. The logic of the makePregIP function of this class is a bit problematic. I have modified it and can use it. This function allows access from IP addresses in the whitelist.
1. Get the file name: basename ();2. Obtain the directory where the file is located: dirname ();3. Obtain the file information through pathinfo (). The Returned result is an array, including the path, full name, file name, and extension. For example:
Php can delete an array by using the following two methods:1. Traverse the array and determine whether the element value is specified. If so, use unset () to delete it. The sample code is as follows: The code is as follows:Copy code // $ Var is
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