※checkmoney ($C _money) Check if the data is in 99999.99 format
※CHECKEMAILADDR ($C _mailaddr) to determine if a valid e-mail address
※CHECKWEBADDR ($C _weburl) to determine if it is a valid URL
※checkempty ($C _char) to determine if a string is
Pre-Knowledge: Javascript, PHP (small)/perl (small)!
Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, estimated to be a problem with the configuration)
Directory structure:
/wwwroot/cgi-bin/fileup.php (File
As the size of the site expands, MySQL is clearly unable to meet the needs of many sites that are
In the case of large database Oracle, how to use PHP to access Oracle becomes increasingly important.
I've been talking about how I did it from a
In PHP function is commonly used a reasonable reusable method, the function of the system functions and user-defined functions, the following I will give you the use of these two PHP functions, there is a need to understand the friends can refer to.
In PHP http_user_agent is used to obtain user-related information, including the user browser, the operation of systems engineering, whether the installation of Alex Toolbar Oh, and other information, there is a need to understand the friends can
//********************************
Session_get_cookie_params (PHP4 $#@62;= 4.0rc2)
Array session_get_cookie_params (void);
Returns an array that records some information about the cookie for the current session.
Yes:
"Lifetime"-the lifetime of the
3. Regular expression Definitions
The regular expression (regular expression) describes a pattern of string matching that can be used to check whether a string contains a seed string, replaces a matched substring, or extracts a substring that
Now there are more and more personal webmaster need to understand how to configure their own php,cgi server under Windows System, to facilitate local debugging CGI and PHP programs.
We can use Apache (Windows edition) to do it once: The following is
In PHP false True is true and false meaning, in PHP is called the Boolean data type, he is our common type of data, such as conditional judgment is also a Boolean data type, let us introduce to you.
Grammar
To specify a Boolean value, use the
1. Intro
At present, regular expression has been widely used in many software, including *nix (Linux, UNIX, etc.), HP and other operating systems, Php,c#,java and other development environments, as well as many applications, can see the shadow of
PHP is now a popular server-side scripting language, it's very powerful, you can use it to do almost anything. Without the need for complex variables and code, you can make beautiful counters very quickly. Next, let's do it step-by-step.
In fact,
9.3 Curly Braces
Of the three main braces placement rules, two are acceptable, as the first of these is the best:Place curly braces at the same column below the keyword:if (condition){...while (condition){...}}The traditional Unix parentheses rule
After a more comprehensive understanding of regular expressions, let's look at how to use regular expressions in perl,php, and javascript/"target=" _blank ">javascript.
In general, Perl uses the following format for the expression:
Operator/regular-
This article to give you a summary of the PHP constant type of some usage, this is a friend's study notes, I would like to share with you classmates.
Once a constant in PHP is defined, it can no longer be changed or undefined, constants have
In the previous article, "Php+mysql+jquery implementation of the microblogging program--jquery," explains how to use jquery to achieve the real-time word count of input forms and the function of Ajax to submit data to the background. This article
Vi. Complete Procedures
Before the end of this lesson, we have to add everything to a program that has the ability to add, edit, and delete records. This is an extension of everything in front of you, as well as an excellent way to review it. Check
After all, I still underestimated the "sister" two characters to the program Ape's lethality, in the absence of a picture of a Jay Bao today, unexpectedly still can not have a shot of the situation under the circumstances of a day to reach the four
1. Remove all HTML elements, or keep a few HTML tags
Copy CodeThe code is as follows:
$text = '
Test paragraph.
other text ';
echo Strip_tags ($text);
echo "/n";
Allow
andEcho strip_tags ($text, '
');?>The result is (minus the comment):
PHP file lock and MySQL table lock have probably want to use, that is, only one person to operate at the same time, so as to avoid the simultaneous operation of the same file, so that the loss of data situation, let me introduce you to the PHP file
The main use of the GD library two methods:
Copy CodeThe code is as follows:
Imagecolorallocatealpha//Assign color + Alpha
Imagesavealpha//Set to save full alpha channel information when saving PNG images
code example:
Copy the Code code 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