This is a translated article, in the original text see: Https://wiki.php.net/internals/windows/stepbystepbuild
Incidentally, Wiki.php.net has a lot of wonderful content, want to learn more about PHP students do not miss:)
Preparatory work
Compiling
The singleton (Singleton) mode and the Uncommon Multiple cases (Multiton) mode control the number of classes in the application. such as the schema name, Singleton can only be instantiated once, only one object, multiple instances of the pattern can
A good project will be fixed-format directory, lotusphp relatively flexible, can reasonably arrange their own program run directory, here I recommend 2 kinds of directory configuration
The first is the directory structure recommended by lotusphp,
First, preface
have done IP attribution query function of friends should have heard of the pure IP library, pure IP library query similar to this:
If you only need to search for the user's attribution based on IP and then display it, just follow
you can use a character as a wildcard to replace any character except a newline (\ n). For example, a regular expression:
. at
can be matched with "cat", "sat", "#at" and "Mat". Primarily used when searching for files
You can also specify a
Share, in PHP programming, the usual functions of converting letters to case.
1. Convert a string to lowercase
Strtolower (): This function converts all characters passed in the string argument to lowercase and puts the string back in a small form
1.PHP page language itself is not the appropriate encoding type, at this time, you directly in the script written in Chinese is certainly garbled, needless to say, the database;
Workaround: Select ' UTF8 ' or ' gb2312 ' so that the client browser
First of all, create an infinite category of data table, I use the ID, name, PID this type (of course, there are many ways of infinite classification, such as: ID, name, PID, path. Left, right, right-side node form)
CREATE TABLE ' class ' (' id '
Users before the Fever network to participate in the upload image activity has not been lossless compression processing. I want to use the script to process the images that incoming up in January, but the AMAZON_S3 service cluster can only use some
Today's work needs to write a tree-shaped linkage, so write an extensible infinite-pole linkage drop-down option
The code is messy, and mark is free to tidy up.
Fucking!
Company even QQ can not be arbitrarily cut a map!
Paste Database First
The cache of the Web page is controlled by the "Cache-control" in the HTTP message header, and the common values are private, No-cache,-age, must-1-cache, must---control:-age=52---3-revalidate,--4The-control value is "no-: Fri, 1999 16:00:00= no-=no-
@access
Scope of Use: Class,function,var,define,module
The tag is used to indicate access rights for the keyword: private, public, or proteced
@author
Specify the author
@copyright
Scope of Use: Class,function,var,define,module,use
Specify copyright
We do the template sometimes need to use the Call column sub-column, the following article will teach you to achieve the purpose, quite simple. The code is as follows:
In the call:
* 获取子栏目* @param $parentid 父级id* @param $type 栏目类型* @param
1 output data to the browser: print (), Echo (), printf (), sprintf (),
Both the print () and Echo () statements output the data passed in to the browser
pintf () output static text and mixed statements consisting of dynamic information
$discuz _url = ' http://127.0.0.1/discuz/';//Forum Address
$login _url = $discuz _url. ' Logging.php?action=login ';//Login page address
$post _fields = Array ();The following two items do not need to be modified$post _fields[' loginfield '] = '
Sometimes the date ("Y-m-d h:i:s") is used to find that the time difference is 8 hours, modify "/etc/php5/apache2/php.ini":
Date.timezone = "Asia/shanghai" (or change to Date.timezone = "PRC")
http://www.bkjia.com/PHPjc/440148.html
attached: The requested operation has failed error solution
attached: Could not open the requested SVN filesystem wrong solution
attached: Authentication failure and Password mismatch
Recent projects need to use thrift and PHP to read and write the relevant data in hbase, so we sorted out the related classes and tested them.
There are several main ways to manipulate HBase now:
1.HBase shell, mainly configured after executing the
In the process of developing the platform of public platform, there are so many parameters that need to be transmitted, $userOpenId, $message, $time.
In the process of running the whole program, the three variables are placed in the parameter list
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