Uchome code is still very good, learn!
Copy the Code code as follows:
/*** Define some constants*/@define (' In_uchome ', TRUE); It is said to prevent the file from being illegally includedDefine (' X_ver ', ' 1.2 '); Uchome versionDefine ('
#用户发布的html, filtering hazard codes
Copy the Code code as follows:
Function uh ($STR){$farr = Array ("/\s+/",//filter Extra blanks"/]*?) >/isu ",//Filter
Here directly to the complete program, the specific application can be modified by themselves.
The example I gave here is very simple, and in fact, there are many applications that can be developed from this example. such as hiding the real URL
Copy CodeThe code is as follows:
Login
User name:
Password:
Cookie Save time:
Browser processSave 1 daysSave 30 daysSave 365 days
Copy the Code code as follows:
Perhaps for some people, the article is too simple, this is a tutorial for beginners, because the time is tight (to accompany the wife shopping, hehe), which appeared the design is not standard, code writing is not standard, and so on, the bug and
If you want to use the conversion of the amount, the processing of the decimal part should be modified
function Ch_num ($num, $mode =true) {
$char = Array ("0", "one", "II", "three", "the", "WU", "Lu", "Qi", "ba", "JIU");
$DW = Array ("", "Pick",
Use the following code when initializing your program:
Copy the Code code as follows:
$PHP 2html_fileurl = $_server["Request_uri"];$PHP 2html_urlstring = Str_replace ("/", "", STRRCHR ($Php 2html_fileurl, "/"));$PHP 2html_urlquerystrlist =
1.
Error hints
Warning:cannot send session Cookie-headers already sent
Warning:cannot Send session cache Limiter-headers already sent
Analysis and Solutions
The reason for this type of problem is that when you use Session_Start () in your program,
Kinds of data types
Shaping: can have decimal and hexadecimal representations
Fu: Floating-point numbers consist of a number plus a decimal point plus a number. Two number sequences cannot be empty at the same time.
String: A character or number
Such as
$array 3=array ("Gender" = "male", "name" and "Not Woman");
$array 4=array ("Sex" = "Don't Know", "looks" = "very handsome");
After merging, the latter will cover the former, so that after merging it becomes
Array ([gender] and don't know
We are bound to encounter this situation: Bank A and Bank B almost simultaneously open your account and see your account on the original 1000 yuan deposit, and then both banks want to add 500 yuan deposit to your account. Then, bank A will change $10
Iconv function Library can complete the conversion between various character sets, which is an indispensable base Function library in PHP programming.
1, download Libiconv function library http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz;
2,
Why use multiple submission tasks?
Before I answer this question, let me answer a very obvious question: since many forms are more suitable for a single submit button, why do people sometimes need two (or more) commit buttons?
The best way to
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