Description:/*************************
Description
Determine if the passed variable contains illegal characters
such as $_post, $_get
Function: Anti-injection
**************************/
Copy CodeThe code is as follows:
Illegal characters to
Main function Description
Removed the functionality of the Discuz language pack
Porting all of the features in the Discuz template
Added automatic Update cache and lifecycle features
The use of the template in the same way as discuz, so do not make
function CreateFolder ($path)
{
if (!file_exists ($path))
{
CreateFolder (DirName ($path));
mkdir ($path, 0777);
}
}
CreateFolder ("2007/3/4");//Create a 2007/3/4 directory structure under the current directory.
http://www.bkjia.com/PHPjc/31897
Such statements, it is obvious that the cause of this is caused by Setcookie, looked at the Internet, like the following explanation: The cookie itself has some restrictions on the use of, for example:
1. The statement of the call Setcookie must be
string read and Write functions fgets and fputs
The function of reading a string function Fgets function is to read a string into a character array from the specified file, in the form of a function call: fgets (character array name, n, file
The JS code is as follows:
Copy CodeThe code is as follows:
Maximum data volume
var total= "100";
The amount of display per page
var pagesize=10;
How many pages are there?
var pagenum=math.ceil (total/pagesize);
Build navigation
function
The program uses the php zip extension, if the server supports, that can use the ^_^, the generated zip compression package can be extracted with winrar and so on, of course, can also be extracted with PHP. The decompression time has been released
Copy CodeThe code is as follows:
function GetIP () {//Get IP
if ($_server["http_x_forwarded_for"])
$ip = $_server["Http_x_forwarded_for"];
else if ($_server["HTTP_CLIENT_IP"])
$ip = $_server["Http_client_ip"];
else if ($_server["REMOTE_ADDR"])
$ip =
http://php-accelerator.co.uk/can be downloaded and is a powerful opponent of Zend. is free of charge. I'm already using it. The effect is good.
Modify PHP.ini Plus:
Zend_extension =/usr/local/lib/php_accelerator_1.3.3r2.so
PHPA = On
Phpa.tweaks = On
Responsibilities of the database administrator
Startup and shutdown of the server
User Account Maintenance
Log file Maintenance
Backup and copy of the database
Optimization of the server
Software updates for database management systems
Security of
Copy CodeThe code is as follows:
Date_default_timezone_set (' PRC '); Default time zone
echo "Today:", Date ("Y-m-d", Time ()), "
";
echo "Today:", Date ("Y-m-d", Strtotime ("June 2008")), "
";
echo "Yesterday:", Date ("Y-m-d", Strtotime ("-1 Day"))
It's more than 1 floors today ... Write 1 First: (number added)
Copy CodeThe code is as follows:
$a = "10"; "Connect" the right side to the left
$a + = "2"; Add the right to the left
echo $a. "
\ n "; Here the result is 12, probably means, the
PHP Code:
$lan = substr (? $HTTP _accept_language,0,5);
if ($lan = = "ZH-CN")
Print ("
");
Else
Print ("
");
?>
HTML pages automatically jump to multilingual pages based on the browser language you visit
Add the following code between them.
EXEC ("/bin/grep-r ' $oldword ' $rootpath", $results, $errorCode);
if ($errorCode) {
if ($errorCode = = 1) {
echo "Possibly no files were found with? $oldword in them
\ n ";
}
echo "OS Error: $errorCode
\ n ";
echo "Check ' man errno ' and count
It's time to summarize some of the previous PHP simple system authoring techniques.
The previous period mainly described how to read and query MySQL data in PHP, and explained how to make PHP multi-conditional combination Query method. Of course,
First of all to explain the needs: according to our system requirements, we will be the department name, employee name, PC name, IP address and other fields to make the combined query to obtain the desired data results. So, for the sake of
Copy CodeThe code is as follows:
$a = 1; Begin
$b = 2; End
$c = $b-$a; How many records can be generated by total statistics
$ab = $IN [' Number ']=4; Number of digits
$a _c= $in [' Hdcount ']=50; How many sheets are generated
$ASASD = "a"; Card
HTML section:
function Postrequest (strURL) {
var xmlHttp;
if (window. XMLHttpRequest) {//For Mozilla, Safari, ...
var xmlHttp = new XMLHttpRequest ();
}
else if (window. ActiveXObject) {//For Internet Explorer
var xmlHttp = new
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