1. php-Excel
Php-Excel is a very simple library for generating Excel documents from PhP on-the-fly.
Http://code.google.com/p/php-excel/Download scriptsHttp://www.jb51.net/codes/24319.html2. phpexcel
Project providing a set of classes for the PHP
1. appservnetwork
First, let's download something related to PhP.
First, we will download a complete set of PHP-related tools-appservnetwork.
Appserv 2.5.10 PHP Runtime EnvironmentAppserv 2.6.0 PHP Runtime Environment
After the installation
Every PHP script limits the execution time, so we need to use set_time_limit to set the execution time of a script to an infinite length, and then use flush () and ob_flush () to clear the Server Buffer, output the return value of the script at any
Click Next to download: CSV operation class
The usage instructions are as follows:
1. Generate a CSV file
CopyCode The Code is as follows: require "./include/csvdatafile. php ";
Set_time_limit (200 );Header ("Content-Type: Application/rfc82
CopyCode The Code is as follows: /**
By lenush;
*/
Class tree
{
VaR $ DATA = array ();
VaR $ child = array (-1 => array ());
VaR $ layer = array (-1 =>-1 );
VaR $ parent = array ();
Function tree ($ value){$ This-> setnode (0,-1, $ value );} //
I said that there was already output, And I typed it in the editor. There was nothing in front of it. This was also the case when I used Ajax. Later, I put this PHP file in Linux to open it, you will find that at the beginning of the file, there
CopyCode The Code is as follows: /*
* Class: MSSQL
* Time: 2009-12-10
* Author: libaochang
* Version: 1.0b
* Description: MSSQL database access class, it can execute the procedur or SQL
*/
Class mssqlutil
{
VaR $ user = NULL; // Database User
ArticleDirectory
Syntax
Return Value
Definition and usage
The _ construct () function creates a new simplexmlelement object.
If yes, the function returns an object. If it fails, false is returned. Syntax
_ Construct (data,
About the author
Wang Dandan, software engineer of IBM China system and technology center, has been engaged in web system design and development since joining IBM in 2006. He has been using PHP for five years.
Program Experience in design and
⚑Declaration and use of static variables
⚑Usage of custom Constants
What are static variables?Static variables are variables declared using static. The difference between these variables and local variables is that when a static variable leaves
1. Reading random strings
ThisCodeA readable string is created to bring it closer to the word in the dictionary, which is practical and has the password verification function.Copy codeThe Code is as follows :/*************** @ Length-length of
CopyCode The Code is as follows: // Contains the PHP simple HTML Dom class library file
Include_once ('./simplehtmldom/simple_html_dom.php ');
// Collect htmlFunction getwebcontent ($ URL ){$ CH = curl_init ();$ Timeout = 10;Curl_setopt ($ ch,
Foreach can easily modify the array unit by adding & before $ value, such:
PHPCode Copy codeThe Code is as follows: foreach ($ arr as $ value ){$ Value. = '4 ';}
However, this method can easily cause errors and cannot be found.
The example
We know that Java has the concept of a package, while. Net has a more convenient DLL.
Program The concept of set reference. Through these object sets that are combined in the form of packaging, we can easily reference classes or other objects
In the control panel of Windows 7-
Program In "enable/disable WINDOWS function", open IIS in it, do not forget to open CGI in IIS (this is not selected by default), such as (do not cut it yourself, directly use Microsoft's graph ):
Then,
Usage:
Memcached
CopyCode The Code is as follows: $ cache = new cache_memcache ();
$ Cache-> addserver ('www1 ');
$ Cache-> addserver ('www2 ', expires 11,20); // This server has double the memory, and gets double the weight
$ Cache-> addserver
The principle is as follows:
Encryption
Plaintext: 1010 1001
Key: 1110 0011
Ciphertext: 0100 1010
The ciphertext 0100 1010 is obtained, and the decryption must be different from the key or lower.
Decryption
Ciphertext: 0100 1010
Key: 1110
To implement gzip compression pages, the browser and the server need to support them. In fact, the server is compressed. After being uploaded to the browser, the browser decompress and parse the files. We don't need to worry about browsers, because
Note: Modify the values of several variables in the Start header.
Program code
Copy codeThe Code is as follows: SET NGINX_PATH = D:
SET NGINX_DIR = D: \ nginx-0.7.63 \
SET PHP_DIR = D: \ PHP \
++ Code
Cls
@ ECHO OFF
SET NGINX_PATH = D:
SET NGINX_DIR
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