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
The phpiconv function solves the problem of UTF-8 and gb2312 encoding conversion.
$ Content = iconv ("UTF-8", "gb2312", $ content );
This is actually the opposite. it seems that UTF-8 is indeed converted to gb23
Php special character escape functions
This article describes the usage of functions related to special character escaping in php and describes how php can process special characters. For more information, see.Mysql and php come with many
Php5 string processing function summary
This article describes common character string processing functions in php5, including string comparison, string search, string truncation, and other functions. For more information, see.A summary of
Php super large file download and resumable download implementation code
$ SourceFile = "jbxue. tmp"; // temporary file name to be downloaded
$ OutFile = "..xls"; // download the file name saved to the client
Example of sending an email with attachments using PHPMailer
/**
* PHPMailer email sending
* Edit bbs.it-home.org
*/
Require_once ('include/PHPMailer/class. phpmailer. php'); // import the
Php array operations
If you are still struggling to find the php array operation method, you must not miss this article, the most comprehensive php array operation method, and hope to help you.I. basic functionsKey name and value of the
What is the essence of project and code learning for programmers?
It is easy to learn. It is difficult to achieve this.Novice programmers found themselves stealing ideas from other projects in recent projects. Of course, it is not really
Several methods for php to obtain the file extension
Php can be used to obtain File Extensions. For more information, see.Method 1:function get_extension($file){substr(strrchr($file, '.'), 1);}Method 2:function get_extension($file){return
Php judges that the string is in pure English, pure Chinese characters, or a mix of Chinese and English formats.
$ Strarray [1] = "hello ";
$ Strarray [2] = "123456 ";
$ Strarray [3] = "123 hello ";
$
Php outputs all variables, constants, modules, functions, and classes of the current process.
Echo''; $ B = array ); $ Arr = get_defined_vars (); // Print $ BPrint_r ($ arr ["B"]); // Print all server
Learning how to convert timestamp and date formats in php
/*-------------------------------------------------------
*
* Copyright (c) 2011 Baidu.com, Inc. All Rights Reserved
* $ Id $
Automatic generation of static pages on VM
$ Nowtime = time ();
$ Pastsec = $ nowtime-$ _ GET ["t"];
If ($ pastsec
{
Exit; // update once every 1 minute. the time can be adjusted by
Date_diff calculation & amp; quot; Operation Time & amp; quot; interval from & amp; quot; current Time & amp; quot;
There are many similar comments in many blogs. comments: xx minutes and xx seconds show the comment for a long time. today,
Php_MySQL management client adminer-2.3.2
Adminer is a MySQL management client similar to phpMyAdmin. The entire program has only one php file, which is easy to use and install. Adminer supports multiple languages (11 translation
Support menu navigation for themes in wordpress
1. the folder used by the topic is in the topic folder corresponding to wp-content/themes /.
The topic contains ----- functions. php (the functions used by
Simple test of a SOAPClient (with test instance)
Collect and sort the code by yourself to easily implement online queries for weather and QQ. For reference only, please click it.
/* Generate at Sun, 04 Jan 2009 13:46:27 + 0
In-depth understanding of ZF distribution loop (how Dispatcher works)
Public function fooAction ()
{
// Forward to another action in the current controller and module:
$ This-> _ forward ('bar',
Php function for converting Chinese characters into pinyin
/*---
* Function: convert Chinese characters to pinyin
* Function: Pinyin
*/
Function Pinyin ($ _ String, $ _ Code = 'gb2312 ')
{
Win764-bit Apachehttpserver + PHP configuration
1. first download apache http server (I originally wanted to download it from the official website, but I couldn't find it for a long time, so I got an old version online) I downloaded it at
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