The latest plan to learn PHP, found a lot of functions need to use, can write their own trouble, so find the next PHP commonly used functions, from the big PHP system down, is definitely the use of PHP utility function
Copy CodeThe code is as
Copy Code code as follows:
?
function GetIP () {//Get IP
if ($_server["http_x_forwarded_for"])
$ip = $_server["Http_x_forwarded_for"];
else if ($_server["HTTP_CLIENT_IP"])
$ip = $_server["Http_client_ip"];
else if
/*Program Design: Lin Jianxuan (floating maple design room)Made in Lu Feng by noonQQ: 5818500Email: linzhenxuan@163.comKeep this information if you use or modify it!Function: Ubb typeAdvantage: compared with normal ubb, Ubb quickly matches the
Then the article "High-quality PHP Code 50 Practical Skills Necessary (above)" continue to study.
26. Avoid writing SQL directly, abstractpatiently wrote too many of the following statements:
$query = "INSERT into the users (name, email,
As we all know, regular expressions greatly facilitate many PHP programmers in dealing with strings.
However, for beginners who want to learn regular expressions, there are more or less problems. I would like to explain the following more or less to
Classes that implement MIME decoding
This class of decoding method is decode ($head =null, $body =null, $content _num=-1), in order to deal with the convenience, requires input is two character array, in our last chapter, the use of pop class is
Generally, regular expressions use the following "symbols": ^-indicates that a string must have such a word before it. For example, ^ http: // indicates that http must exist before it: // $-indicates that the string must be followed by such a word .?
Introduction: This is a detailed page for PHP to implement POP3 mail decoding (3). It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.
MIME decoding class a class that implements MIME decoding this class implements the decoding method is decode ($ headnull, $ bodynull, $ content_num-1), in order to facilitate processing, the input is a two-character array. in the previous article,
The class that implements MIME decoding this class implements the decoding method is decode ($ headnull, $ bodynull, $ content_num-1), in order to facilitate processing, the input is a two character array, in our previous article, the POP class used
POP3
Classes that implement MIME decoding
(Author: Chen Junqing October 24, 2000 15:11)
A class that implements MIME decoding
This class implements decoding method is decode ($head =null, $body =null, $content _num=-1), in order to handle the
/*
If reproduced, please specify the author
Original Author: He Zhiqiang
Improvement: sonymusic[Sonymusic@163.net]
File: ubb.php
Remark: Say is an improvement, in fact, the core function parse () has been completely rewritten, and the idea is not
UBB /*
If reproduced, please specify the author
Author: He Zhiqiang
File: ubb.php
Remark: Say is an improvement, in fact, the core function parse () has been completely rewritten, and the idea is not the same.
However, is still inspired by the He
Do a SQL Interpreter yourself
In some small applications, there is no need to use large database software at all. Making a SQL interpreter of your own can be managed in a database way.
This interpreter explains the commonly used SQL commands. You
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.