Recently in the company while writing a PHP program, because the company's operating efficiency requirements of the program is very high, but also a novice, the first attention to the efficiency of the program is very important, here on the
One, Web server security
PHP is nothing but a Web server module function, so first of all to ensure the security of the Web server. Of course, the Web server to be secure and must first ensure that the system security, so it is far, endless. PHP can
Involving procedures:
phpMyAdmin
Describe:
phpMyAdmin Remote PHP Code injection Vulnerability
With:
phpMyAdmin is a free tool that provides a WWW admin interface for managing MySQL.
phpMyAdmin There is a problem with PHP code injection, remote
One of the school's external teachers wrote the program, book + Student management system, filename 001.php,002.php,003.php ... (b) problem out at 004.php number of lines I forgot, too.
"> "width=" 136 "height=" 181 "> title:
Pay attention to
Open PHP.ini,
Remove "; Extension=php_openssl.dll" before the semicolon.
Remove "; Extension=php_mcrypt.dll" before the semicolon
After restarting Apache also saw in the Apache log read Apache error log: Prompt "Cannot load XXX dynamic Library"
First we have to go to the official website download Download php_xdebug.dll,2. Place the downloaded Php_xdebug.dll under the PHP installation directory Phpext, and then edit the php.ini file
The code is as follows
Copy Code
Linux system
1,/usr/local/nginx/conf/nginx.confModify
Client_max_body_size
2,/usr/local/php/etc/php.ini
Modify
Post_max_sizeUpload_max_filesize
3, restart Lnmp/root/lnmp restart
Windows system
The default post_max_size for PHP is 2M. If the
This program for beginners, you can change the use ofIf there is any problem or improvement and optimization, also hope to share with me qq:297535861Progress with you.2007-12-26function Str_substr ($str, $statr, $end) {//String intercept functions$x
PHP implementation of the article previous page and the next page of code, this is I want to write a small work to use, today take it out of each of you to share the next, remember before I always think not understand how to implement the article up
?
Header ("content-type:text/html; Charset=utf-8 ");
$file _name=$_get[' name ']; True file name of the server
$file _realname=urldecode ($_get[' real ']); The file name of the database UrlEncode encoded
$file _dir= "upload/";
$file = fopen ($file
function count ()Describe:Calculate the number of elements in a variableint count (mixed Var);Returns the number of elements in Var, which are typically an array (since anything else would have one element).Returns 0 If the variable is not
[A-zA-Zxa0-xff _] upper case English, Chinese, or underline[0-9a-zA-Zxa0-xff _] the following content can be lowercase uppercase Chinese numbers and underscores[0-9a-zA-Zxa0-xff _] content after {3, 15} is repeated 3-15 times So the whole regular
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