PHP function for escaping regular expression characters

PHP function for escaping regular expression characters $ Str = preg_quote ("/\ d {3} (\-\ d {4 })/"); Echo $ str; ?> Result:/\ d \ {3 \} \ (\-\ d \ {4 \}\)/Example 2,

Small example of php output buffer

Small example of php output buffer // Enable Buffering Ob_start (); // Output stuff (probably not this simple, might be custom CMS functions... Echo 'Print to the screen !!! ';

Php uses memcache for multi-server sharing session

Php uses memcache for multi-server sharing session [Session] ; Handler used to store/retrieve data. Session. save_handler = files; this is the session method. the default files can be used to store files.

Php function for randomly displaying images

Php function for randomly displaying images /** * Function: displays images randomly. * Filename: img. php * Usage: * * * Edit: bbs.it-home.org **/ If ($ _ GET ['Folder']) {

Php calendar code (with demo)

Php calendar code (with demo) Function build_calendar ($ month, $ year, $ dateArray ){ // Calendar header, starting from Sunday till Saturday $ DaysOfWeek = array ('s ', 'M', 'T', 'W', 'T', 'F','s ');

PHP implementation code for obtaining MAC addresses

PHP implementation code for obtaining MAC addresses /** * Obtain the physical (MAC) address of the machine Nic * Currently, Windows/LINUX systems are supported. * Edit: bbs.it-home.org **/

Small example of abstract classes in php5

Small example of abstract classes in php5 /** * Define and use php abstract classes * Edit: bbs.it-home.org */ Abstract class Number { Private $ value; Abstract public function

Php statistics function for getting folder information

Php statistics function for getting folder information // Collect information about folders // Count the number of directories // Format the size of the output directory. unit: Bytes, KB, MB, and GB.

Php color value conversion php converts hexadecimal numbers and color values

Php color value conversion php converts hexadecimal numbers and color values /** * Color value and hexadecimal number conversion * Edit: WWW. JBXUE. COM */ Function toHex ($ N ){ If ($

Example of exporting an excel file using php

Example of exporting an excel file using php Function xlsBOF (){ Echo pack ("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0 ); Return; } Function xlsEOF (){ Echo pack ("ss", 0x0A, 0x00 );

Small example of generating xls files in php

Small example of generating xls files in php Include '../inc/auth. php '; Include '../public/Base. php '; Include '../public/BoonList. php '; // The above is the code for connecting pdo to the

Php checks whether the web page enables gzip compression

Php checks whether the web page enables gzip compression This article describes how to use php code to determine whether or not to enable gzip compression on a webpage. if you need it, you may wish to make a reference.When collecting the

Small example of php multi-value cookie

Small example of php multi-value cookie /** * Set php multi-value cookie * By bbs.it-home.org */ If (! Isset ($ userdetails [0]) { Setcookie ("userdetails [0]", $ username );

Php real-time website screenshot implementation code

Php real-time website implementation code 2. php code $ X = $ _ REQUEST ['x']; $ Y = $ _ REQUEST ['Y']; $ Format = $ _ REQUEST ['format']; $ Site = $ _ REQUEST ['site'];

Example of using soap in php

Example of using soap in php $ Soap = new SoapServer ($ wsdl, $ array ); 2. SoapClient $ Soap = new SoapClient ($ wsdl, $ array ); 3. SoapFault $ Fault = new SoapFault ($ faultcode,

Example of php plotting technology

Example of php plotting technology This article shares a php drawing example to learn how to operate graphics technology in php, including drawing various graphics, writing text, copying canvases, and other operations. For more information,

Two examples of php global variable $ _ SERVER

Two examples of php global variable $ _ SERVER This article introduces two examples of the php global variable $ _ SERVER, which are access information record and $ _ SERVER ['request _ method' usage. For more information, see.Example 1:

Two examples of php 2D array sorting-php Tutorial

Two examples of php 2D array sorting This article introduces two examples of two-dimensional array sorting in php, which are relatively simple. if you are learning php array sorting, you can make a reference. it is also good.Share a piece

Php excel-php Tutorial

PHP excel code for importing an excel file to a database In this article, PHP uses phpexcel to import database code. if you are interested in phpexcel, it is good to give a reference.Phpexcel imports the content to the database. the code is

Share a php verification code class and call example

Share a php verification code class and call example This article shares a good php verification code class with a complete call example. For more information, see.1. php verification code Session_name = $ name; $ this-> image_width = $

Total Pages: 12780 1 .... 10519 10520 10521 10522 10523 .... 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.