Nginx Hide Version Number:
1, enter the Nginx configuration file directory (this directory according to the installation decision), with the nano edit open
Nano nginx.conf
Add Server_tokens off in HTTP {-}; Such as:
HTTP {...... OmittedSendfile
Recently because of a PHP interface, but because of permissions problems, can not execute some specific commands, because PHP to run nobody.
Online search for some solutions, one is the use of the Su method, a C program to achieve, there is a super
JavaScript form validation is Chinese, determines whether an input is Chinese and is implemented through regular expressions.Check to see if it is Chinese
function Ischn (str) {
var reg =/^[u4e00-u9fa5]+$/;
if (!reg.test (str)) {
return false;
PHP touch () function example tutorialDefinition and usageThe touch () function sets the specified file for access and modification time.This function returns TRUE success, or FALSE failure.SyntaxTouch (filename, time,
PHP unlink () instance tutorialDefinition and usageDelete an object in the unlink () function.This function returns TRUE success, or FALSE failure.SyntaxUnlink (filename, context)Check an instance.Basic syntax. Parameter descriptionFile requirements.
PHP array_merge_recursive data merging function and array_merge () function usage and example tutorialArray_merge_recursiveDefinition and usageThe array_merge_recursive () function combines multiple arrays of one mine into one array. The difference
Let's take a look at PHP today.Array_intersect_key ()For the function instance tutorial, let's take a look at its simple description, and then look at the tutorial.Array_intersect_key ()Definition and usageThe array_intersect_key () function
After the PHP function tempnam () is disabled, tempnam () can create a temporary file, and the file name will not be overwritten with the file in the same directory.The returned string is the temporary file name. If an error occurs, an empty string
About imagickImagick, which can be used by PHP to call the PHP extension of the ImageMagick function. With this extension, PHP can have the same functions as ImageMagick. You can use the APIs provided by ImageMagick to create and modify images.
The code is as follows:Copy code // Sort multiple arrays$ Ar1 = array ("ten", 100,100, "");$ Ar2 = array (1, 3, "2", 1 );Array_multisort ($ ar1, $ ar2 );Var_dump ($ ar1 );Var_dump ($ ar2 );// In this example, after sorting, the first array will
The code is as follows:Copy code php file Upload Foreach ($ _ files as $ f){// Process the Chinese nameIf (function_exists ("iconv") $ f [name] = iconv ("UTF-8", "gb2312", $ f [name]);$ Unm = intval (mt_rand (1000,9999 ));$ File = "z_upload/".
The code is as follows:Copy code user registration last name: Password: Confirm password: email: Telephone: address: The code is as follows:Copy code // Initialize the sessionSession_start ();// Contains the database tutorial
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