PHP generates unique promotions/offers/discount codes (with source code) _php Tutorial

Every e-commerce site now has one or more types of offers/discounts/coupons system to share with you how to generate a unique promo/discount code in PHP. The main is to implement a promo code system, can be used to track users from certain sources,

Php+ajax do imitation Baidu search dropdown automatic prompt box (there are instances) _php Tutorial

Php+mysql+ajax implementation Baidu Search drop-down prompt box mainly has 3 files three files in the same directory as Here are three files of the code to import the SQL file into the MySQL database to modify the database password for their own

PHP eval function usage php eval () function Tips _php Tutorial

Eval Converts a value into a string. Syntax: void eval (string code_str); return value: None Function type: Data processing Content Description This function can substitute the value of a variable in a string, and is typically used to manipulate

Table Show Unlimited Class (PHP version) _php tutorial

Treetable can also display hierarchical architecture in an infinite hierarchy by combining row and column merging of cells. 1. Build an array of id/pid/name and later dynamic data that can be generated from the database. Tree algorithm, click Copy

PHP Shell Super Kill-free, reduce volume tool implementation Code _php tutorial

Lostwolf wrote it. It's not Webshell, it's just a webshell-free tool. Do not use the original Webshell Kill Phpwebshell Only The tool runs in CLI mode! If there is no way to break the file content filtering can try to use this tool to avoid killing

PHP Notes: The Application of AOP _php tutorial

Introduced Have you ever heard of AOP (Aspect oriented programming)? Although there seems to be no excessive use in PHP, AOP is widely used in enterprise-level development. I'll take this article to introduce you to the AOP aspects of PHP. This

PHP Object-Oriented learning note the design pattern of the second generation object _php tutorial

I. Singleton mode (Singleton)If the application contains and contains only one object at a time, then the object is a single instance. Used to override global variables. Copy CodeThe code is as follows: Require_once ("db.php"); Class

How to implement des plus decryption in PHP and. NET _php Tutorial

php5.x version, to add PHP extension php_mcrypt. PHP Version: Copy CodeThe code is as follows:Class Std3des{Private $key = "";Private $iv = "";/*** Construct, pass two key and IV that have been base64_encode** @param string $key* @param string $iv*/

PHP read Excel file php excelreader read Excel file _php tutorial

PHP Development will certainly encounter the need to import Excel file content into the database, Php-excel-reader is a class that reads Excel, it is easy to use it to read Excel files very convenient. Php-excel-reader Download Address:

PHP article acquisition URL completion function (formaturl) _php Tutorial

Write the required function, URL complement function, can also be called FormatUrl. Write this function is to develop the collection program, the collection of articles will often encounter the page path is "relative path" or "absolute root path" is

PHP gets the output parameters of MSSQL stored procedure to implement _php tutorial

In the development process may encounter unable to obtain the MSSQL stored procedures output parameters, many friends do not know what to do, this article will be detailed introduction of PHP to get MSSQL of the stored procedure output parameters of

4 ways to generate XML files in PHP share _php tutorial

Generate the following XML string XML code Copy CodeThe code is as follows: Title1 Content1 2009-10-11 Title2 Content2 2009-11-11 method I.

Header jump and include include questions _php tutorial

The registration procedure unifies the single entrance, the core judgment is the Checkip place, only needs to make a game_id judgment in the non-real-name authentication template procedure. Because too sure, anxious to get off the psychology,

PHP automatically to the article Add keyword link function code _php tutorial

Copy CodeThe code is as follows: $link = Array ( ' Baidu, http://www.baidu.com/', ' Server software, http://s.jb51.net/', ' Script house, http://www.jb51.net/', ); $STR = ' Search Server Software in Baidu to provide software to the Scripting House

PHP Concise function (PHP simple and clear function syntax) _php tutorial

1. Related to MySQL Mysql_connect Establish a connection to the MySQL server Grammar Resource mysql_connect (String server[,string usingname[,string password[, BOOL New_link[,int Client_flags]]]) eg Copy CodeThe code is as follows: $DB _host =

PHP Serial number generation function and string replacement function code _php tutorial

Copy CodeThe code is as follows: /** * Serial Number generator */ function Snmaker ($pre = ") { $date = Date (' Ymd '); $rand = rand (1000000,9999999); $time = Mb_substr (Time (), 5, 5, ' utf-8 '); $serialNumber = $pre. $date. $time. $rand; echo

PHP read files and can support remote file code sharing _php Tutorial

PHP Read File Case One Copy CodeThe code is as follows: $file = ' jb51.net.php '; This case does not support remote $fso = fopen ($file, ' R '); echo $data = Fread ($fso, FileSize ($file)); Fclose ($FSO); ?> fopen () binds the name resource

PHP fopen read a little insight with Chinese URL _php tutorial

But yesterday when reading a picture of the problem, and later found that the URL with the Chinese characters. For example, the following scenario: Copy CodeThe code is as follows: $files = fopen (' http://www.website.com/my pp.jpg ', ' RB ');

PHP eval Function Usage Summary _php tutorial

Eval Definition and usage The eval () function calculates the string according to the PHP code. The string must be a valid PHP code and must end with a semicolon. If no return statement is called in the code string, NULL is returned. If there is a

Two methods of connecting sqlserver2000 in php5.3 (COM and ODBC) _php tutorial

1.Com link, ADODB. Connection Copy CodeThe code is as follows: $conn = new Com ("ADODB. Connection "); Instantiate a Connection object $connstr = "provider=sqloledb;datasource=.; Uid=sa;pwd=123456;database=jnold; "; $conn->open ($CONNSTR); $rs =

Total Pages: 5208 1 .... 1182 1183 1184 1185 1186 .... 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.