Php static file generation template and cache
Create TABLE 'bihtml '(
'Id' int (11) not null auto_increment,
'Szdtitle' varchar (16) not null,
'Szdcontent' text not null,
Primary key ('id ')
) TYPE
Generate html static page code for all the content in the database
Require_once ("conn. php ");
If ($ _ GET ['all'])
{
/* Obtain database records to generate html files with a file name */
$
Example of set_include_path and get_include_path in php
Set_include_path ('/xampp/htdocs/test/include'); // note that '/' in php indicates not the root directory of the website, but the drive letter of the
An age calculation function written in php precise to the day
/**
* PHP age calculation function
*
* Parameters support parameter passing by array and standard Mysql date
* Params sample
*----
Different methods for page jump in php
Function server_transfer ($ dest)
{
Global...; // list the variables on the current page or custom global variables you want to use on the new page.
Php paging class, first made
For the first time, let's step on
@ Charset "UTF-8 ";
* {Padding: 0; margin: 0 ;}
. Page {
Font-size: 14px;
Text-align: center
}
. Page ul {list-style-type: none; display:
Php reference for generating html static pages
////////
//
// Zhang Shulin-Huijia Studio
//
// Module Name: woods-bhtml.php
// Abstract: generate the end of the static HTML processing
PHP culture programming (ideas)
In fact, it is really fun to pack all the functions in Chinese.Http://blog.qita.in
/**
* Http://blog.qita.in
* @ Copyright 2012
*/
Function output ($ string ){
Function sharing; concatenates the values in the input column into a variable using text strings.
Function sharing; concatenates the values in the input column into a variable using text strings.
Function
Instructions for Use-Sina PHP framework pure version 1.1 (with beautiful waterfall stream templates)
1. Xweibo is used in this example. for detailed technical description of this framework, see:Http://x.weibo.com/download.html 2. to use
Php image processing method, php image processing class
A previously written php program can process uploaded images online and crop images. Add a watermark image, Watermark Image exceeds the size of the target image, the watermark image
Improve the array_unique ($ array) function
After improvement, you do not need to traverse the array length before processing. you can simply traverse the array length after processing.
Function unique ($ array)
{
Sort
PHP filters HTML code spaces and returns the line break function
PHP filters html code spaces and returns the line break function
/**
* PHP filters HTML code spaces and returns the line break function
* Echo
PHP single character case-sensitive conversion class
Basic operations
/*
*
* @ Class Base_Char
* @ Author zhangys
* @ Date 2012/06/25
*/
Class Base_Var_Char
{
Public static
Collect email php code
Because of the mass mailing program, of course there is no mailbox, so I wrote a collection mailbox program.Reproduced from: http://www.tongqiong.com/read.php? Tid-35-ds-1.html
// Author:
UCenter batch add User php
Just put the php in the UCenter directory and execute it. Source: http://www.tongqiong.com/read.php? Tid-27-ds-1.html
// Author: www.tongqiong.com
// Header ("content-type: text/html; charset
Php unlimited classification tree data formatting
Simplicity is king ....
Function genTree ($ items, $ id = 'id', $ pid = 'pid', $ son = 'Children '){
$ Tree = array (); // formatted tree
$ TmpMap = array (); //
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