"Warning": please do not change without permission
"FileName": c_check.inc
"Role": a set of common detection functions
"Author": Sky Ash
"Last Modified Date": 2001/05/11[cxx]
"Variable definition rule": ' C_ ' = character type, ' i_ ' = integral
Example
(1). Recompile PHP Again (this method will compile more things, so it is more time-consuming),
(2). To compile the FTP extension individually and then configure PHP to support the extension (this is the way to save time, so choose this way)
Add Chinese watermark/*-------------------------------------------------------------* * Description: This is a custom class that is used to add the bottom watermark to the specified picture (without occupying the picture display area), you need to
Matching regular expressions for Chinese characters: [U4E00-U9FA5]
Match Double-byte characters (including Chinese characters): [^x00-xff]
Application: Computes the length of the string (a double-byte character length meter 2,ascii character 1)
The template for PHP is really a tricky thing to say. A random number of about 20 or more options, light pear contains 5 of different templates, it is really a headache. Do not say that the good one, choose a template before the best to figure out
PHP Tutorial File read operation
The way in which data is stored in a text file is mainly three steps and some file operation functions are as follows:1, open the file (file operation function: fopen)2, file data read (File operation function:
To do time data conversion to timestamp we use the PHP tutorial with functions, the strtotime () function resolves the date-time description of any English text to a Unix timestamp
Format one Fri Aug 05 12:19:04 +0800 2011
Strtotime ("Fri Aug 05
1: Why I can't get a variable I post data name to another page on one page, why can't I get any value when I output $name? Register_global defaults to off in later versions of PHP4.2To obtain a variable submitted from another page: Method One: Find
PHP Simple Online Voting system source download, the last time you and a public cooperation they said to me to write a simple voting system, but each IP can only vote once, well, the following is I wrote a most simple voting system, is implemented
Template is actually the separation of PHP and HTML, some people also say MVC what.
PHP handler, save the dynamic content in the variable, and then output the contents of these variables through the template, this is the template
You can
$rows = $db-
Mac OS X has PHP installed by default, but there are some common PHP extensions in the development system that are not there and need to be installed manually, now record this for enquiries.
Installing the PHP extension requires your Mac system to
Libevent is a high-performance network library based on event-driven. Supports multiple I/O multiplexing Technologies, Epoll, poll, Dev/poll, select, and Kqueue, support I/O, Timer and signal events, and register event priorities.PHP Libevent
Flex filesTeacherevalute.mxml
The code is as follows
Copy Code
Import Mx.utils.ObjectProxy;Import mx.rpc.events.ResultEvent;Import mx.controls.*;Import mx.events.*;Import Mx.controls.SWFLoader;Import
Error handling:1. Syntax error2. Runtime error3. Logical errorError report:Error: The E_ERROT program is interrupted and an error occurs.Warning the E_WARNING program will not be interrupted, but some functions may not be implemented.Note: E_NOTICE
Array Value operations1. Value extractionIn PHP, use list to extract the values in the array, such as list ($ a, $ B) = $ array. If the number of values in the list is greater than the number of arrays, the excess values in the list are set to NULL.
The code is as follows:Copy code /*** The Code mentioned below is run in PHP5.3 or later.*/Function callback ($ callback ){$ Callback ();}// Output: This is a anonymous function. /n// An anonymous function is directly defined here for transfer.
String to be matched: Regular expression: [^ '"] *) ['"]) | (? [^ s] *)Output result of regular expression matching:XImage/ad1.gifImage/ad2.gifPHP regular expression extraction or the src attribute value of the img element: The code is as
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