Common form verification classes. With this, General verification is complete.

Copy codeThe Code is as follows: /*** Page function: common form verification classes* Author: Happy with the wind* Creation Time: 2006-3-6* QQ: 276624915*/Class class_post{// Verify whether it is a combination of letters and numbers with a

A PHP calendar Program

// If ($ HTTP_GET_VARS [year] = ""){$ HTTP_GET_VARS [year] = date ("Y ");}If ($ HTTP_GET_VARS [month] = ""){$ HTTP_GET_VARS [month] = date ("n ");}$ Month = $ HTTP_GET_VARS [month];$ Year = $ HTTP_GET_VARS [year];// If ($ year {Echo "error! ";Echo "

PHP date function parameters

Time () is a number in PHP. This number indicates how many seconds have elapsed since. It's strange.However, this facilitates computing,Find that the previous day is time ()-60*60*24;Find that the time of the previous year is time () *

Php string Truncation

However, when English and Chinese characters are mixed, the following problems may occur:If there is such a string$ Str = "this is a string ";To intercept the first 10 characters of the string, useIf (strlen ($ str)> 10) $ str = substr ($ str, 10 )."

PHP5.0 in Windows

PHP5 includes the following important features:· Supports new object models and Zend engines with many new features.The XML support is completely rewritten, and the extended performance is centered around the excellent libxml2 library

5 Start Programs for beginners of PHP

The basic syntax format of php is similar to that of C. If you have never learned C, you will be familiar with the format after several minutes to see how other people's source code is

PHP beginners (7)

Building a simple interaction website (3)6. Password VerificationMaybe you want to put your photo set on your website, and you just want to show it to your friends. At this time, you need a password verification program.6.1 HTTP-based

Diagram of APMServ 5.1.2

1. Download apmserv5.1.2.rar and decompress2. Open apmserv5.1.2main program apmserv.exe3. Virtual Host Configuration (click to zoom in if you cannot see it clearly)4. virtual directory configuration (click to zoom in if you cannot see it clearly)

Section 1-Object-Oriented Programming

+ --------------------------------------------------------------------- +| = Read this article for Haohappy | = Notes in the Classes and Objects chapter| = Translation-oriented + personal experiences| = Do not repost it to avoid unnecessary troubles.

A useful paging Function

Copy codeThe Code is as follows:In my original code, it seems that the process may be clumsy, but it is very practical./*---------------------------------------------------------------//* Function Description: Paging function page ($ SQL, $ pagesize

Implementation principle of scheduled tasks in php

Some related knowledge is briefly introduced according to the php manual:1. Connection processing: In PHP, the system maintains the connection status. There are three possible states:0-NORMAL (NORMAL)1-ABORTED (exit unexpectedly)2-TIMEOUT

Regular Expressions in PHP (2)

Confirm repeated occurrenceUntil now, you know how to match a letter or number, but in more cases, you may need to match a word or a group of numbers. A word may consist of several letters, and a group of numbers may consist of several singular

Introduction to PHP Chinese Word Segmentation automatic keyword acquisition

Copy codeThe Code is as follows:Header ("Content-Type: text/html; charset = UTF-8 ");Define ('app _ root', str_replace ('\', '/', dirname (_ FILE __)));$ Test = 'Here is a Chinese test code! ';Function get_tags_arr ($ title){Require (APP_ROOT.

Allow you to upload 1000 files simultaneously (1)

Prerequisites: Javascript, PHP (a few)/Perl (a few )!Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, probably due to a configuration error)Directory structure:/Cgi-bin/fileup. php (File receipt)/Www/test/phpfileup.htm (File

Implement the SESSION function in PHP3 (2)

COOKIE function library: cookie. inc. php3If (! Isset ($ __cookie_inc __)){$ __Cookie_inc __= 1;Function JsSetCookie ($ CName, $ CValue, $ CExpr = FALSE ){// This function allows you to set the cookie after the HTML header is marked,// Can be

Php simulates the function code of the js function unescape.

Copy codeThe Code is as follows:Function unescape ($ str){$ Ret = '';$ Len = strlen ($ str );For ($ I = 0; $ I {If ($ str [$ I] = '%' & $ str [$ I + 1] = 'U '){$ Val = hexdec (substr ($ str, $ I + 2, 4 ));If ($ val Else if ($ val 6). chr (0x80 | ($

PHP fopen: some insights on reading URLs with Chinese characters

However, a problem occurred when reading an image yesterday. Later, it was found that the URL contains Chinese characters.For example:Copy codeThe Code is as follows:$ Files = fopen ('HTTP: // www.website.com/my pp.jpg', 'rb '); The returned value

Two methods and differences of array merging in PHP

PHP array merging methods and differencesIf it is an associated array, as follows:Copy codeThe Code is as follows:$ A = array ('Where' => 'uid = 1 ','Order' => 'uid ',);$ B = array ('Where' => 'uid = 2 ','Order' => 'uid desc ',); 1. array_merge. If

Single index. php implements PHP folder traversal at any level (original Zjmainstay)

The following are core files:Index. php fileCopy codeThe Code is as follows:Header ('content-Type: text/html charset: UTF-8 ');Date_default_timezone_set ('prc ');$ RootDir = 'listfile'; // the root directory of the site to load all files of the

Animation and code sharing of php dll call instance operations

The original code in the animation is as follows: Copy codeThe Code is as follows:VERSION 1.0 CLASSBEGINMultiUse =-1 'true'Persistable = 0 'notpersistableDataBindingBehavior = 0 'vbnonePerformancebehavior = 0 'vbnoneMTSTransactionMode = 0

Total Pages: 12780 1 .... 10233 10234 10235 10236 10237 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.