/**php Importing a CSV file to a database * * *
* Simultaneous calculation of program execution time
***/
Defining the Get Time function
function Getmicrotime () {
List ($usec, $sec) = Explode ("", Microtime ());
return
For everyone to give a PHP use SMTP to send mail code, simple and practical, the need for friends, you can refer to the next. The complete code is as follows.
' Scripting School ',//fill in the name of the website here); $mail = Array (' state
Introduced under the revised PHP upload file size limit method, sub-Windows and Linux two environments, respectively, introduced the next PHP upload limit solution, the need for a friend reference.This section: Modify the PHP upload file size limit,
This article describes the next PHP server configuration method, PHP environment to build the specific steps, with the need for a friend reference.This section: PHP server Configuration method, PHP environment setup steps.The steps are as follows: 1,
$arr =explode ("|", $array [' AA ']);
Split array
$num = @count ($arr);
Get the number of arrays
for ($i =0; $i
echo $arr [$i];
}
Copy Code>>> you may be interested in the article: PHP array splitting
Default_charset= "gb2312", modify the default character set, here, if preceded by a semicolon ";", remove the semicolon;
The Register_globals=off is changed to Register_globals=on, making the transitive global variable valid;
Extension=
This paper introduces some knowledge of Chinese character coding conversion in PHP, analyzes the principle and method of PHP code conversion, and has the need of a friend reference.For an understanding of the mysql4.1 character set, tell how PHP
$string =mb_convert_encoding ($string, character output encoding, original character encoding);
Copy CodeFor example: Web pages use GBK encoding, strings are encoded using UTF-8, and characters are converted to Web page display
Get the role ID string recursively
function Exploderole ($ROLEOBJ, & $resultStr) {
if (0 childroleobjarr)) {
foreach ($roleObj->childroleobjarr as $CHILDROLEOBJ) {
if (' = = ' $resultStr) {
$resultStr. = "{$childRoleObj->id}"
AuthType Basic
AuthName "Restricted area"
authuserfile/full/path/to/passwordprotected/.htpasswd
Require Valid-user
Copy CodeThe first line of AuthType refers to the use of the authentication method, where we
This article introduced the PHP server configuration detailed steps, the environment for Php+mysql+iis, grasp the PHP environment to build the method, the need for a friend reference.This section: How to build a PHP server environment.Software
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