Today suddenly want to give this site to do a search page, so that users can search to find their favorite content, but also to avoid the vast amount of information in the manual to find the resources of the trouble, my goal and Baidu home effect
1. ArrayThe PHP array is actually an associative array, or a hash table. PHP does not need to declare the size of an array in advance, and you can create an array in a way that is directly assignable. For example:
Most traditional, use numbers to do
"Basic Algorithm"
Suppose you have an array, you need to find out where the value is in the array.
?Two-point Searchfunction Bin_sch ($array, $low, $high, $k) {if ($low $mid = Intval (($low + $high)/2);if ($array [$mid] = = $k) {return $mid;}elseif (
Function
file Lookup function php
CODE:
/* File Lookup functionUsage:FindFile (directory, whether to traverse subdirectories, whether to find the contents of the file, not lookup
Packaging | data | database
We now encapsulate it in Dbfz.inc, which is designed as follows:$#@60;?Class dbinterface{var $dbID = 1;//To determine the current operation of the database, when DbID 1 for MySQL, when 2 for SQL Server, 3 for ODBC or
/*** To test the writable nature of the directory** @param string $dir* @return int 1 writable 0 not writable* Source DZ* Xiao Jia (www.phpcina.cn) organized in 2006-06-26*/function Dir_writeable ($dir) {/*** $dir if not the directory will create a
function (1) Date
Usage:
Date (format, [time]);
If there is no time argument, the current time is used.
A format is a string in which the following characters have special meaning:
U replaces the number of seconds since a start time (as if it were
Author: Chinese Red Wolf
Body:
Earlier ("Talking about PHP Syntax (2)") mentioned in the PHP submission form information is very convenient. But how long is the life cycle of a variable in a form information that is submitted? This article will come
The Php.mvc Tag Action Dispatcher
Tagactiondispatcher is the implementation of a standard Actiondispatcher class that supports access to basic template tags. The Tagactiondispatcher class supports the same Actionobjects collection and
Get the visitor domain name of the IE address bar.
$S = ' http://bbs.webjx.com ';$S = Parse_url ($S);$S = Strtolower ($S [' Host ']); Take the domain name partEcho $S;
$domain = Array (' com ', ' cn ', ' name ', ' org ', ' net '); The domain
PHP receives more than one checkbox with the same name the information is not automatically converted to an array as an ASP, which brings some inconvenience to use. But there is a solution, is to use JavaScript to do the preprocessing.
Multiple
The function of this code is to connect to a MySQL server with a URL address of localhost and a port of 3306.
The function of this piece of code is:
Connect to a MySQL server with a URL address of localhost and port 3306. The MySQL server account
Forms validation classes commonly used in PHP Dynamic Web page development
The following are the referenced contents:Class Class_post{Verifies whether a letter/number combination of a specified lengthfunction Fun_text1 ($num 1, $num
Ado| Advanced
4th Chapter Advanced Topics
4.1 Maintenance of display status
The display state of a component refers to the data that the component should always hold in a series of postback. For example, when a user changes the font color of a
Dynamic | compression
PHP4 uses a buffer mechanism
,
before you decide to send
,
All content just exists in the buffer
,
Instead of sending it directly to the browser
,
Although you can use header and Setcookie functions to achieve
,
but these two
PHP3.0 is now probably one of the hottest scripting languages on the Internet, a new type of CGI programming language that is fast and can run on a variety of platforms, such as Windows, Unix, Linux, and so on. Powerful functionality and ease of use
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