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
[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 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
/**
* 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
// 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
/**
* Color value and hexadecimal number conversion
* Edit: WWW. JBXUE. COM
*/
Function toHex ($ N ){
If ($
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
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
/**
* Set php multi-value cookie
* By bbs.it-home.org
*/
If (! Isset ($ userdetails [0]) {
Setcookie ("userdetails [0]", $ username );
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
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
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 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
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 = $
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