When the Windows Server opens the GD Library of PHP, the results of phpinfo () after using CGI do not appear in the Configure Command.
Find the php.ini file Extension=php_gd2.dll remove the front;
Also attached is how to detect if the GD library
P> eyes without hate GBK Unicode UTF8 Kanji Conversion
The conversion of Chinese characters in PHP has always been a tricky business.
The class has four filters "[dec];", "& #x [hex];", "%u[hex]", "UTF8 conversion"
Easy to use, but also can
/*** Object* Base class*/Class Object{/* Whether to output debugging information * *var $debug = true; /*** Object* @deprecated method of destructor** @return void*/function Object (){Whether the user enters from the homepage, makes the judgmentif (!
Because of the checkbox specificity, so we have to get its value, in my language is not the same, in the PHP tutorial we are in the form of an array, and the use of traversing his value, there are a number of examples below.
checkbox
Note "Before compiling, you need to install the Xcode kit!"
1, the preparation of related software packages, unified into the/usr/local/src/php directory:
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the source page address of the HTML file informationvar $time;
5. Other Miscellaneous5.1 Generating Images PHP can manipulate image processing. If you have installed the GD library, you can even use PHP to generate images.?Header ("Content-type:image/gif");$string=implode ($ARGV, "");$im = Imagecreatefromgif
Work gap a class of file locks is written to solve some of the concurrency problems.
BOOL Flock (int handle, int operation [, int &wouldblock]);The handle of the flock () operation must be a file pointer that is already open. Operation can be one
PHP Magic Constants Detailed
Example:
Class moshu{public
function Moshu () {
echo ' current class name: '. __class__. "";
Echo ' Current method name: '. __function__. "";
Echo ' The number of rows in the current file: '. __line__. "";
Echo
Flex filesTeacherevalute.mxml
The code is as follows
Copy Code
Import Mx.utils.ObjectProxy;Import mx.rpc.events.ResultEvent;Import mx.controls.*;Import mx.events.*;Import Mx.controls.SWFLoader;Import
Generating html principlesWe will write the tag to be generated into a template file, and then use php to read and replace the specified tag with the content we want to replace. Now the mainstream dedecms system does the same.Generate static page
Official website: http://phpexcel.codeplex.com/The following describes the usage methods,Include 'phpexcel. Php ';Include 'phpexcel/Writer/excel2007.php ';// Or include 'phpexcel/Writer/excel5.php'; for output. XlsCreate an excel file$ ObjPHPExcel =
AddTry_files $ uri = 404;The complete php parsing field is: The code is as follows:Copy code Location ~ \. Php (|/. *) $ {Try_files $ uri = 404;Fastcgi_pass unix:/tmp/php-cgi.sock;Fastcgi_index index. php;Include fastcgi_params;Fastcgi_param
String to be matched: Regular expression: [^ '"] *) ['"]) | (? [^ s] *)Output result of regular expression matching:XImage/ad1.gifImage/ad2.gifPHP regular expression extraction or the src attribute value of the img element: The code is as
This script uses Curl to monitor the Nginx website Status. In response to the 502 message, restart LNMP. The code is as follows:Copy code #! /Bin/bashIfCurl-I http://www.111cn.net | grep "HTTP/1.1 502"ThenService php-fpm restart Fi adds the
A: Like naming variables, you cannot use built-in function names or numbers to name functions.B: repeated calls.C: supports static elements.D: non-fixed parameters are supported.The technician is recommended to standardize functions as follows:A:
Ini_set ('include _ path', CAKE_CORE_INCLUDE_PATH. PATH_SEPARATOR. ROOT. DS. APP_DIR. DS. PATH_SEPARATOR. ini_get ('include _ path '));We can see that this program dynamically modifies include_path. However, cake adds CAKE_CORE_INCLUDE_PATH and
The header () function sends the original HTTP header to the client.It is important to realize that the header () function must be called before any actual output is sent (in PHP 4 and later versions, you can use the output cache to solve this
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