Basic usage of phpexcel class library
// Write an excel file
// Include class
Require_once ('classes/PHPExcel. php ');
Require_once ('classes/PHPExcel/Writer/excel2007.php ');
$ ObjPHPExcel
How to execute linux commands in php
$ Last_line = system ("ls", $ retval );
Echo "Last line of the output:". $ last_line;
Echo"
Return value: ". $ retval;
?>
Exec function description:
Example of using google Map interface to develop applications in php
Function selected ($ param, $ value ){
If ($ param = $ value) print "SELECTED ";
}
# Collect any form data to control the display
Php + mysql paging query code and demo
// To avoid errors caused by repeated file inclusion, the following conditions are added to determine whether a function exists:
If (! Function_exists (pages )){
Php verification code php non-preset image generation verification code
This article describes how to generate a verification code for a php non-preset image. you do not need to preset the verification code picture on the server. The image
How does the Sina SAE cloud platform use codeigniter database configuration?
$ Db ['default'] ['hostname'] = SAE_MYSQL_HOST_M;
$ Db ['default'] ['username'] = SAE_MYSQL_USER;
$ Db ['default'] ['password'] =
Php Chinese characters and hexadecimal encoding conversion methods
// Convert Chinese characters to hexadecimal encoding
Function hexencode ($ s ){
Return preg_replace ('/(.) /es ', "str_pad (dechex (ord ('
Html special character filtering php class
[Code] class HtmlFilter {/*** filter special characters in a string * @ static * @ param $ content * @ return string */public static function filterSpacialHtmlChar ($ content) {if (empty ($ content)
Php checks whether the string is full of Chinese characters or contains Chinese characters.
$ Str = "'2014 Is ";
If (! Eregi ("[^ \ x80-\ xff]", "$ str ")){
Echo "all Chinese ";
} Else {
Echo "not
Php recursive example php recursive function code
// Recursively obtain the role ID string
Function explodeRole ($ roleObj, & $ resultStr ){
If (0 childRoleObjArr )){
Foreach ($ roleObj->
PHP line chart generation functions and examples
/*
* Generate a line chart in php
* By bbs.it-home.org
*/
Function line_stats_pic ($ value_y, $ width, $ high, $ strong = 1, $ fix = 0 ){
// Y
Six methods for renaming uploaded images in php
/*
Com_create_guid () is a function supported by php5. you can customize unsupported versions by yourself;
*/
Function guid (){
If (function_exists (
Example of phpcookie counter using cookie to create a counter
/**
* Cookie counter instance
* By bbs.it-home.org
* Date: 2013-9-29
*/
If (! Isset ($ _ COOKIE ['visits ']) $ _ COOKIE ['visits']
Php package a group of files as a zip package class
/**
* Zip file creation class.
* Makes zip files.
*
* @ Access public
*/
Class zipfile
{
/**
* Array to store
Usage analysis of PHP double quotes and single quotes
In this article, I have encountered a problem of double quotation marks and single quotation marks in php in my actual work, with a solution attached. if you have any need, you can
PHP Lunar Calendar Conversion
PHP Lunar Calendar Conversion
/*
School of Computer Science and Engineering, Qujing Normal University, Yunnan province-Edited by Yang Haixi
9-9-3
*/
Class Lunar
{
Form toolkit with synchronization token
It is said that the Shenzhen 2011 Universiade is not coming, so I was arrested by the Youth League Committee to serve as a volunteer service station. A small form toolkit is written in the process.
Input validation using the filter function in php
If (isset ($ _ GET ["value"]) {
$ Value = $ _ GET ["value"];
}
Else {
$ Value = false;
}
If (is_numeric ($ value) & ($ value >=15 & $
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