6.2 (may be earlier) saw this exp online, is a discuz 7.2 SQL Injection Vulnerability
After multiple research attempts, most exp problems on the Internet exists. I will use and modify them to summarize the usage methods as follows:
Discuz 7.2/faq.
I. Basic Knowledge
1. mobile APP type
Mobile applications include WebApp, NativeApp, and HybridApp.WebAppIt is a mobile website that needs to be accessed through a mobile browser.NativeAppIt is developed in the native language and needs to be
// The first and last days of the weekCopy codeThe Code is as follows:$ Date = new DateTime ();$ Date-> modify ('this week ');$ First_day_of_week = $ date-> format ('Y-m-d ');$ Date-> modify ('This week + 6 days ');$ End_day_of_week = $ date->
In php development, we need to include a file. The common code is as follows:
Copy codeThe Code is as follows:If (is_file ($ fileName ))Require $ flleName;
In windows and linux, there is no question: Assume that a d:/web/webServer/A. php file must
When the key name is a number or an abnormal variable character (if there is a space), you must use obj [xx] to obtain the value.Copy codeThe Code is as follows:
// Declare json data$ Array = array ('result' => array ("90" => "90 queue", "status" =>
Let's take a look at the Code. For example, php merges js requests.Copy codeThe Code is as follows:// Save the page as js. php// Front-end request example http: // localhost/js. php? F = 1, 2// Request two files: 1.jsand 2. js.Header ("Content-Type:
Core tips: kangsheng's authcode function can be said to have made significant contributions to the Chinese PHP community. Including kangsheng's own products, and most Chinese companies that use PHP use this function for encryption. authcode uses
For applications with low daily IP addresses or a low number of concurrent jobs, do not consider this! There is no problem with the normal file operation method. However, if the concurrency is high, when we perform read and write operations on the
1. Structure and call (instantiation ):
Class className {}, call: $ obj = new className (); when the class has a constructor, you should also input parameters. For example, $ obj = new className ($ v, $ v2 ...);
2. constructor and destructor:
1.
Share some common PHP operations on Text Databases
PHP can display, add, modify, delete, and query data in a text database.Let's take a message-based program as an example to describe how PHP can display, add, modify, delete, and query data in a
Here is how to change the view folder path using CodeIgniter.
Code for controlling the view folder path: system/core/loader. php
Public function add_package_path ($ path, $ view_cascade = TRUE) {$ path = rtrim ($ path ,'/'). '/'; array_unshift ($
When the application is under maintenance, We can temporarily close the application.Php artisan downArtisan is a program in the laravel root directory. When this command is executed, the app: down Function in the App/start/global. php file is called.
When installing Ecshop, there are two problems:
1. Strict Standards: Non-static method cls_image: gd_version () shocould not be called statically in D: \ X \ www \ ecshop \ install \ des \ lib_installer.php on line 31
Solution: Find row 31st in
PHP Verification Code image cannot be output
File Name global_func.php
Function _ code (){
// Run the verification code
// Number of note Codes
$ _ Rnd_code = 4;
For ($ I = 0; $ I
$ _ Nmsg. = dechex (mt_rand (0, 15 ));
}
// Save it in session
$ _
How to Implement the callback function in php
Function del (){Var input = document. getElementsByName ('power1') [0]. value;Alert (input. constructor );} 1 2 3 confirm 4 5 6 Delete 7 8 9 Reset How can I delete the numbers
PHP actively disconnects from the browser
I have compiled an article about in-depth analysis of set_time_limit (), connection_status (), and ignore_user_abort () in PHP connection processing, which explains how to process PHP scripts on the server
Php unlink Deletion
When you delete an image
Example: unlink('abcdef.jpg ');
In this way, the deletion is normal;
But the file name cannot be deleted when it is read from the database.
Fn = $ rs ['abc'];
Unlink ($ fn );
It cannot be deleted.
PHP analyzes the repeated POST valuesClient HTML
On the PHP server, how does one determine whether the two groups of parts, transysno, and tranlineid are the same?------ Solution --------------------After the submission, print_r ($ _ POST); knows
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