Full-Featured send PHP Mail class

php--the function of the following class is very powerful, not only can send the HTML format of the message, you can send the attachmentClass Email {---set global variablesvar $mailTo = ""; Recipientvar $mailCC = ""; Ccvar $mailBCC = ""; Secret

PHP prints digital code in picture form

Define output as Image type$n = 10;Variable $n is the number of displayed digits Using the above method, get the number of visitors and assign value to the variable $str1 (Cheng)$str 1= $count;$str 2 = "";Number of digits if not enough $n, 0 in

PHP custom generated random cipher function

?//Turns out to be zend.com, by Hunter Reproducted / *Usage: $ new_password = Return_password ();Example: Generate Password: 2X5BJJ2Z,ERGID62Y,P2SHTDPV* / The code is as follows Copy Code function Return_password () { /

PHP substr_replace Replacement string Specify position character

/*int Mb_strlen (String $str [, String $encoding]) The code is as follows Copy Code Echo substr_replace ("Hello World", "Earth", 6); Hello Earth?> It is worth mentioning that when the start and length are both

PHP uses database information to generate static page instance code

The code is as follows Copy Code $con =mysql tutorial _connect ("localhost", "root", "") or Die ("Link error!!! ");mysql_select_db ("message", $con) or Die ("Database link error!!! ");mysql_query ("Set names ' GBK '");$sql

PHP domain matching Regular expression code

The code is as follows Copy Code function Matchdomain ($q) {Preg_match ('/([a-z0-9] (w|-) {0,61}?[ a-z0-9]| [A-z0-9]). {1,} (aero|arpa|asia|biz|cat|com|coop|co|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel| [A-z] [

PHP Collection of remote pictures (can collect anti-theft chain)

//Variable Description: //$url is the full URL address of the remote picture and cannot be empty. //$filename www.111cn.net is an optional variable: If empty, local file names are automatically generated based on time and date //. The

PHP Template Design Model

This template, not the Smarty version of the engine is not template. is an object-oriented design pattern approach.Use the place for example, in the work Easerver, the UI part uses the Wxpython, I now want to change to QT, the sensory template in

PHP two tables merged into a new table and sorted in order

/**La (3,5,8,11)LB (2,6,8,9,11,15)Merged into LC, arranged in order.In PHP, you can't use a function like sort!!!!**/ Class Union {var $lista = array ();var $listb = array ();var $LISTC = array ();function Getlenght ($arr) {//Get table lengthreturn

PHP converts HTML tags into legitimate HTML code programs

The code is as follows Copy Code function Ihtmlspecialchars ($string){if (Is_array ($string)){foreach ($string as $key => $val){$string [$key] = Ihtmlspecialchars ($val);}} else{$string = Preg_replace ('/ (d{3,5}|x[a-fa-f0-9]{4}) |[

PHP ereg_replace function Base and instance code

String Ereg_replace (String $pattern, String $replacement, String $string)/*The modified string is returned. If no matching string is found, then the invariant is returned*/ Instance The code is as follows Copy Code

Php compresses and decompress css files

Compressing css code reduces the file size, reduces the amount of network transmission and bandwidth usage, and reduces the processing pressure on the server.Source code: The code is as follows:Copy code $ String = trim (stripslashes ($ _ POST ['

ID card verification program written in PHP

I wrote several ID card functions, and I personally felt very useful. Especially in the online questionnaire survey, it is very useful to verify the ID card in my personal information, but there are few applicants, you can leave it in your own blog./

PHP Shell compilation (Ultimate Edition)

I used to write a php cmd Shell without any technical content. I always felt that the function was weak and I didn't handle some problems well, such as browsing directories. After I went deep into PHP, I found a lot of interesting functions, so I

PHP Technology: picture implementation for replying to a post and taking off your clothes

Randimage. php/*---------------------------------------------------------| By Bleakwind http://www.weaverdream.com---------------------------------------------------------*/$ Dir = "images/"; // image directory, which is displayed by name...$

Php scales according to the specified size to generate a thumbnail of the uploaded image

In the php Tutorial, upload image thumbnails are generated by proportional scaling of the specified size./***** Proportional scaling* @ Param unknown_type $ srcImage source image path* @ Param unknown_type $ toFile target Image path* @ Param unknown_

Php unlimited classification function

 Ar = array (0 => array ('name' => 'food', 'id' => 1, 'Pi' => 0 ),02 1 => array ('name' => 'plant ', 'id' => 2, 'pid' => 0 ),03 3 => array ('name' => 'cabbage ', 'id' => 3, 'pid' => 1 ),04 4 => array ('name' => 'tree', 'id' => 4, 'pid '=> 2 ),05 5 =>

Php regular expressions in Chinese and English

Php regular expression in Chinese and EnglishHttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> php regular expressions in Chinese and English Function funcChinese ($ str, $ num1 = '', $ num2 ='') // judge Chinese regular expressions {If ($

Simple example: php Cache file generation technical example

Class Cache{Protected $ _ cacheDir;Public function _ construct () {$ This-> _ cacheDir = "./cache "; }Public function setCacheDir ($ cacheDir) {If (empty ($ cacheDir )){$ This-> _ cacheDir = $ this-> _ cacheDir;} Else {$ This-> _ cacheDir = $

Ajax + php second-level linkage menu code

Ajax + php second-level linkage menu code ajax + php second-level linkage menu code Category 1 Category 2 Php processing codeHeader ("Content-type: text/html; charset = GBK"); // output encoding to avoid Chinese garbled characters$ Pid = $ _ GET [

Total Pages: 12780 1 .... 8786 8787 8788 8789 8790 .... 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.