When installing (fastcgi mode), there are often such commands:
Copy CodeThe code is as follows:
/usr/local/webserver/php/bin/phpize
What does Phpize do?
What is Phpize?Phpize is used to extend the PHP extension module, through the phpize can
Using exceptions
PHP5 adds an exception handling module similar to other languages. Exceptions generated in PHP code can be thrown by a throw statement and captured by a catch statement. Code that requires exception handling must be placed inside a
Pclzip IntroductionPclzip is a very powerful PHP class for compressing and extracting zip files, and the Pclzip library is capable of compressing and decompressing compressed archives (WINZIP, PKZIP) in zip format, and can process such files,
Just look at the code, it's good to know.
Copy CodeThe code is as follows:
Usage echo remote_filesize ($url, $user = ", $PW =");
$url = "http://www.aa.com/librarys/images/random/rand_11.jpg";//change your picture address here
Echo remote_filesize ($
Curl is a powerful PHP library that uses PHP's curl library to easily and efficiently crawl Web pages and capture content, set a cookie to complete a mock landing page, and Curl provides a wealth of functions for developers to get more information
For the local, we can take advantage of the Windows own find to find out, but for the online, such as the search FTP space inside the file, this program is very useful.
Use effect:
PHP file Finder Source:Copy the Code code as follows:
PHP
Getenv (PHP 4, PHP 5)
Copy the Code Code as follows://getenv-Gets the value of an environment variable
Function Description:String getenv (String $varname)Copy the Code Code as follows://Gets the value of an environment variable.With Phpinfo ()
This article describes the implementation of thinkphp write array insertion and getting the latest insert data ID. Share to everyone for your reference. The specific methods are analyzed as follows:
This example tells the thinkphp how to write the
Simple PHP gets the Linux server state code, not much to say-directly on the function:
Copy the Code code as follows:function Get_used_status () {$fp = Popen (' top-b-N 2 | grep-e "^ (cpu| mem| Tasks) "'," "R");//Get a moment of system CPU and
In fact, grab Ajax asynchronous content of the page and catch the ordinary page is not very different. Ajax simply makes an asynchronous HTTP request, as long as it uses firebug-like tools to find the requested backend service URL and value-passing
Copy CodeThe code is as follows:
/*
* @im//Picture resources that need to be scaled
* @filetype//production of thumbnail file type
* @dstimW//Zoom the width of the picture
* @dstimH//height of the picture to zoom
* @thumbname//thumbnail file
The error was encountered today when testing the following code:
Copy the Code code as follows:Session_Start ();$_session[' username ']= $username;echo "";Exit ();
Error occurred:
Copy the Code code as follows:Warning:cannot Modify header
The examples in this paper describe the usage of thinkphp loop structure. Share to everyone for your reference. The implementation method is as follows:
Loop structure, the variable does not add $ sign in the loop output
Example 1.forCopy the
This example describes the thinkphp file reference and branching structure usage. Share to everyone for your reference. The specific analysis is as follows:
First, import CSS and JS files
1. CSS Link:Copy the Code code as follows:
JS SRC:Copy
In this paper, we describe the solution of undefined function exif_imagetype (), which is prompted by thinkphp to make a text watermark. Share to everyone for your reference. Specific as follows:
First, the problem description:
thinkphp do a text
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