When using the CI framework, it is sometimes a problem to open the Web page and display only the disallowed Key characters error prompt. Some people say that there are illegal characters in the URL. But make sure the URL is plain English, the
We have passed the previous article:
, you already know that the backend gets the server variables, many from the client incoming. It's no different from ordinary get,post. Let's look at a common Vulnerability code.
1. Detect file type, and
Web site provides the function, is a lot of sites will often have features, shopping malls, forums and a number of common network disk site. Common Internet above, we also often heard that a site, such as the existence of loopholes, such as
Many people on the Web have given answers: Modify the Session.gc_maxlifetime in the PHP configuration file. If you want to learn more about the session recycling mechanism, continue reading. (This article Environment php5.2)
Overview:Each time a
Copy CodeThe code is as follows:
/*============================ File Description ========================================
@filename: session.class.php
@description: Database Save Online User session, realize online user function!
@notice: The
$message =shell_exec ("Sudo/usr/local/webserver/nginx/sbin/nginx-t 2>&1");
echo "Run Result:". $message. "
";
The above statement can execute the shell statement directly in PHP
If there is a return value then one of the 2>&1 is required he will
1. Download memcache Windows stable version, unzip and put under a disk, such as in h:/wamp/www/php Api/memcache;
2. Under terminal (that is, cmd command interface), enter the installation command:h:/wamp/www/php api/memcache/memcached.exe–d
1. First modify the application configuration file
Resources.layout.layoutPath = Application_path "/layouts/scripts"
Specify the location of the layout file
2. Then the simplest way is to modify the boot file bootstrap.php file to add an automatic
Command line mode:In the directory where the Phpdocumentor is located, the input phpdoc–h will be given a detailed parameter table with several important parameters as follows:
-F file name to parse, multiple files separated by commas
-D directories
Test the OB cache and program cache below:In order to test the results more clearly before testing, we php.ini the OB cache and set a clear level of error.
Output_buffering=offDisplay_errors=on
Code Listing 1:
The code is as follows:
echo "PHP";
Copy the Code code as follows:
/*
* SUBSTR returns a substring of a string
* Base_convert convert numbers between arbitrary binaries
* Fileperms access to files
*/
Get Permissions
function Getchmod ($filepath) {
Return substr (Base_convert
What are the new features in PHP5.5 just released recently? Official documentation is here:
http://www.php.net/manual/zh/migration55.new-features.php
1 Generator yield keywordThe Chinese document for yield is here: http://php.net/manual/zh/language.
php5.3
New features
1. Support Namespaces (namespace)5.3 ago
Copy CodeThe code is as follows:
Class Zend_db_table_select {
Indicates that the current class file is located under Zend/db/table
}
5.3
Copy CodeThe code is as follows:
Namespace
Maybe we all know this, as do not understand I guess the meaning of this interface, he is to call in the back of the method called in the implementation of the interface in the class in the content of the existing, good around the mouth ah, write an
Preparatory work1. Get the Devicetoken of the Mobile registration app (unique value returned when iphone registration app Devicetoken)
2. Get the Ck.pem file (to do the phone-side)
3. Get the pass phrase (to do the phone-side)
testpush.php
Click to download OpenSSL
window and Linux to distinguish between the
Unzip the file
Double click:
Win32openssl-0_9_8l_95895.exe
After the installation is complete
\openssl\bin\openssl.exe
Enter a command to generate the private key
Genrsa-
One, sensitive word processing1, filter sensitive wordsThe Preg_match () function is used to search the string for all content that matches a given regular expression, and returns true if it exists, otherwise false.
Grammar:int Preg_match (string
When we use the PHP language, we encounter the need to convert image files. If you implement a batch conversion, you can save a lot of time. Here we will give you a detailed explanation of the PHPCB batch conversion method.
Recently need to tidy up
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