After the php. ini file is configured, all Zend paths are correctly configured, but phpinfo () does not display Zend information.
Check whether the Zend directory has the user permission. By default.
Install PHP in ISAPI mode, and you cannot
Krsort () Definition and usageThe krsort () function sorts the array by key in reverse order to reserve the original key for the array value.
The second optional parameter contains an additional sorting flag.
If yes, true is returned. Otherwise,
You do not have to strictly abide by these principles and violate them and are not subject to religious penalties. However, you should regard these principles as warning bells. If you violate one of them, the warning bells will ring. ----- Arthur J.
You can define a call method on the page as follows:
Copy codeThe Code is as follows: function getData (){
$. GetJSON ("http: // 123.123.123.123 /? Callback =? ",
{
"M": "data", // specify the php file name
"Act": "getdata", // specifies the method
When using the strip_tags () command, you must add strip_tags () to the function. The following are functions:
Copy codeThe Code is as follows: function cutstr ($ string, $ length, $ charset, $ dot) {// character, truncation length, Character Set,
The value of register_globals can be set to: On or Off. Let's take a piece of code to describe their differences.Code:
Copy codeThe Code is as follows:
When register_globals = Off, when receiving the next program, use $ _ GET ['user _ name']
Method 1:
Copy codeThe Code is as follows: Require_once ("./config. php ");
Ob_start ();
$ Id = $ _ GET [id];
$ SQL = "select * from table_name where id = '$ id '";
$ Result = mysql_query ($ SQL );
$ Rs = mysql_fetch_object ($ result );
$ Smarty->
In PHP 4.2.0 to 4.2.3, you can use the w32api_register_function to call an external DLL, provided that you need to open the extended php_w32api.dll in php. ini.
If PHP 5 is used, only the php com class is used to call the DLL.
Basic Method: $ obj =
I. String insertion
Difference between double quotation marks and single quotation marks:
1. Use of double quotation marks:
Copy codeThe Code is as follows:
// Double quotation marks can parse variables and escape characters
$ Username = "jack
What is php:
PHP is short for Hypertext Preprocessor. PHP is an embedded HTML language. It is a scripting language that executes HTML documents embedded on the server. It is widely used in a style similar to C language.Php is the background commonly
Here we will talk about some features of this function through an experiment.
Function prototypeBool spl_autoload_register ([callback $ autoload_function [, bool $ throw = true [, bool $ prepend = false])
Version compatibilityPHP 5> =
I. function prototype
Int memory_get_usage ([bool $ real_usage = false])
2. Version compatibility PHP 4> = 4.3.2, PHP 5
III. Basic usage and Examples1. Get the current memory consumptionCopy codeThe Code is as follows: Echo memory_get_usage ();$
Preface
As the name suggests, the File Cache to memory cache is to convert the data stored in the file to the memory, so that disk operations can be converted to memory operations, which can greatly improve the data access speed, and distributed
The principle is to convert Chinese characters to hexadecimal notation and combine strings according to certain rules to implement character encoding and decoding, ensuring the integrity and compatibility of Characters During URL data transmission,
Array_flip () Definition and usage
The array_flip () function changes the key name of the array to the corresponding value, that is, the key name is changed to the value, and the value is changed to the key name.
The array_flip () function returns
This article describes how to implement time Conversion Based on the timeline.
First, we need to understand several functions of time:
Time (): returns the current Unix timestamp.
Date (): format a local time/date.
Example:
Copy codeCode: date ("Y-m-
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