PHP implementation of a two-way linked list of a sample code

/** * * * Double linked list * @author zhiyuan12@ * @modified 2012-10-25 * @site: bbs.it-home.org */ /** * Linked list element node class */ Class Node_element { Public $pre = NULL; Precursor

PHP automatically generate keywords within the chain of classes

/** * PHP automatically generate keywords within the chain * by bbs.it-home.org */ Include_once (DirName (__file__). " /.. /db/dbviewspot.php "); Class innerlink{ private static $spotUrlMap; /** * Generate

Share a PHP User login class

In PHP programming, user login is often used, here to share a good PHP user login class, the need for a friend reference.PHP User Login class, code: Errreport ($this->err_mysql); $this->err= $this->err_mysql; }} function

A PHP and MySQL connection class

This article introduces a good PHP connection class with MySQL, PHP5 implementation, the need for friends to refer to the next bar.Code: Connect ();} function __destruct () {$this->close ();} Private Function Connect () {//Database connection

PHP regular to determine whether the string is a domain name method sharing

This article introduces, in PHP programming, using regular expressions to determine whether a string is a domain name method, the need for friends to refer to it.Usually match the format requirements of the domain name:1, the name of the domain

PHP Baidu Snapshot, Baidu included, Baidu hot Word code sharing

This article shares several pieces of PHP code, respectively, to get Baidu snapshot time, Baidu included situation, Baidu hot word. A friend who needs to make a reference. Use PHP to get Baidu snapshot, Baidu included, Baidu Hot word, for everyone

PHP Open GD Library (Windows environment)

if (extension_loaded (' GD ')) { Echo ' can use GD'; foreach (Gd_info () as $cate = = $value) echo "$cate: $value"; }else Echo ' did not install GD extension '; ?> Copy CodeThe results are

Two ways to set the time zone in PHP

date.timezone = PRC copy code Set the time zone in code date_default_timezone_set (' Asia/shanghai ');//' Asia/shanghai ' Asia/On Sea date_default_timezone_set (' asia/chongqing ');//Where asia/chongqing ' is '

PHP matches strings that start with "ABC" and Cannot End with "XYZ"

This article introduces, with the PHP regular area with "ABC" beginning, and can not be "xyz" end of the string method, the need for a friend reference.Requirements: Use the PHP regular expression match to start with "ABC", but the end cannot

PHP Unicode decoding tool (Unicode encoding Converter)

Unicode Encoding decoding transformation function Unicode_encode ($name) { $name = Iconv (' UTF-8 ', ' UCS-2 ', $name); $len = strlen ($name); $str = "; for ($i = 0; $i { $c = $name [$i]; $c 2 = $name

Troubleshooting 8080 port occupancy after eclipse forced shutdown

This article describes the solution to the problem of 8080 port occupancy after eclipse forced shutdown, with the need for a friend to refer to it.Eclipse occupied the machine's memory is very large, because of some unknown situation eclipse

Simple example of php array de-weight (one-dimensional, two-dimensional array de-weight)

$aa =array ("Apple", "banana", "pear", "apple", "wail", "Watermalon"); $BB =array_unique ($AA); Print_r ($BB); ?> Copy CodeOutput: Array ([0] = Apple [1] = banana [2] = pear [4] = wail [5] = Watermalon).Two, php

Google PR value of the PHP implementation code

PageRank Lookup v1.1 by hm2k (update:31/01/07) Based on an Alogoritham found here:http://pagerank.gamesaga.net/ Settings-host and User Agent $googlehost = ' toolbarqueries.google.com '; $googleua = ' mozilla/5.0 (Windows; U

PHP socket implementation of the POP3 class

/** * PHP Socket POP3 class * by bbs.it-home.org */ Class Socketpopclient { var $strMessage = '; var $intErrorNum = 0; var $bolDebug = false; var $strEmail = '; var $strPasswd = '; var $strHost =

PHP small function to replace HTML content

/** * Replace HTML content * by bbs.it-home.org */ function HTMLSP ($a) { if (Strpos ($a, ' { echo $a; }else { while (Strpos ($a, ' =0) { if (Strpos ($a, '

PHP Express Query API Class (support a variety of express query)

This article introduces, with PHP implementation of the query Express information of an API class, can support a variety of express. Refer to a friend who needs it.Below is a package of good express query class, share to everyone.The code is as

PHP, Mysql, jquery retrieve password implementation code

Enter your registered email address to retrieve your password: Copy CodeWhen the user enters the mailbox and clicks Submit, jquery verifies that the mailbox format is correct, and if it is correct, sends an AJAX request to

PHP calculates the code for the specified folder information (number of folders, number of files, folder size)

In this article, a section of code that uses PHP to calculate the specified folder information can be used to count the number of folders, the number of files, and the size of folders. Refer to a friend who needs it.The following code implements:

Example of a PHP line chart, pie chart, histogram generation

$dataArray = ""; $nameArray = ""; $dataArray = "10,20,30,40,50"; $nameArray = "January, February, March, April, May"; echo ""; ?> $dataArray = ""; $nameArray = "";

Small example of using mysqli extension in PHP5

/** * Mysqli Extension Example * by bbs.it-home.org */ $mysqli = Mysqli_connect ("localhost", "root", "" "," MyDatabase ", 3306); $result = Mysqli_query ($mysqli, "select * from MyTable"); while ($row =

Total Pages: 5208 1 .... 1740 1741 1742 1743 1744 .... 5208 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.