This article is PHP configuration file php.ini Chinese annotation version, PHP configuration file in detail, the need for friends to do a collection, the key time to use.This section contains a detailed description of the PHP configuration file, php.
Preg_replace ("/([\x80-\xff])/", "", $str);
Preg_replace ("/([U4E00-U9FA5])/", "", $str);
Copy CodeExample, PHP Chinese coding judgment.
There is no Chinese-gbk (PHP) in the judging content
function
$Article = M (' article ');
$Article->limit (' 0,10 ')->select (); Querying the first page of data
$Article->limit (' 10,10 ')->select (); Querying the second page of data
Copy CodeAlthough the paging class page in the
$sudoapt-getinstallapache2
Copy CodeThen, run Apache: $sudo/etc/init.d/apache2restartApache will create a new directory during installation:/var/www, which is the root directory where the document is stored on this server. All documents
!--? php
/**
* php get Picture color values
* by bbs.it-home.org
*/
$i =imagecreatefromjpeg ("photo3.jpg");//test picture, define one yourself, note the path
for ($x =0; $x
/**
* Class Efficiencytester
* Efficiency tester, test function run time
* @version 1.0 2013.04.13
* @author Kross
*/
Class Efficiencytester {
/**
* Var $testTimes
* Number of tests
*/
Private
System ("/usr/local/bin/webalizer/webalizer");
Copy CodeEXEC () Prototype: string exec (String command [, string array [, int return_var]]) the EXEC () function is similar to System (), executes the given command but does not output the
if (Phpversion ()
Set_magic_quotes_runtime (0);
}
Copy Code>> cannot define MAGIC_QUOTES_GPC through functions, so it is recommended to open the server uniformly, when writing the program should be judged, to avoid the
$url = ";//Square Educational system login Address
$ID = ";
$PA = ";
$cookieid = Get_sessionid ($url);//Get the session ID of the login page
/*
Is_login () function to determine if the login was successful
*/
This article introduced a PHP Senior engineer interview problem, before the programmer's Home (bbs.it-home.org) introduced a lot of PHP interview questions, here to provide a PHP senior engineer's face test, a bit difficult, need to refer to the
How to use: Save the above code with the file name: more_upload_file.class.php, and include the file when you use it.
Share a PHP implementation of multi-image upload class, the type of file comments detailed features practical and has a
CREATE TABLE Users (
Username VARCHAR (+) CHARACTER SET GBK,
Password VARCHAR (+) CHARACTER SET GBK,
PRIMARY KEY (username)
);
Copy Codeexample, simulates the case where the query data is escaped using only
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