Ihipop School's Discuz X1.5 Forum was black, where a quarrel for an afternoon. Google a bit "discuz! x1-1.5 notify_credit.php Blind SQL injection Exploit ", you know.
Discuz is a popular forum system in China, the site should be a lot of black. But
Notice:use of undefined constant all_ps-assumed ' all_ps ' in E:\Server\vhosts\www.lvtao.net\global.php on line 50
notice:undefined Index:easetemplatever in E:\Server\vhosts\www.lvtao.net\libs\template.core.php on line 51
Notice:use of undefined
Seemingly simple things, in practical use, is still very interesting
arithmetic operatorsOperator name Result
$a + $b addition $a and $b and
$a-the difference between $b subtraction $a and $b
$a * $b multiplication $a and the product of $b
$a/$b
Remote image upload is a very interesting thing, such as you copy a file from another site, if the text with a picture, the editor will automatically extract the picture, upload, so do not worry about the remote image after the failure of their own
For namespaces, the official documentation has been described in detail [view], and I've done a bit of practice and summary here.
Namespace one of the most explicit purposes is to solve the problem of duplicate names, PHP does not allow two
/**
* $splitChar Field Delimiter
* $file Data file name
* $table database table name
* $conn Database connection
* Column name corresponding to the $fields data
* $insertType insert operation type, including Insert,replace
*/
Copy CodeThe code is
Binary method finds whether an array contains an element, is compatible with the pros and cons, and the code implements:
Copy CodeThe code is as follows:
$searchValue = (int) $_get[' key '];
function search (array $array, $value)
{
$max = count (
Cases:
Copy CodeThe code is as follows:
$a = fopen (' test.txt ', ' R ');
There is no judgment on the file opened, if the file does not exist will be an error
?>
Then the correct wording should be as follows:
Copy CodeThe code is as
In fact, this is very simple, but I have always wanted to use the Ipv6-test API to do something to get the user's IP address ... Helpless JSON gets only the IP of the native server. Forget, do not study, let alone others provide the widget also very
We know that in the use of AJAX technology and PHP background interaction, the Chinese garbled is often the case, JSON as an XML-like data Interchange format, in PHP used to interact with the Chinese language garbled, the way to solve the PHP JSON
conditional Statements
When you write code, you often need to perform different actions for different judgments.
You can use conditional statements in your code to accomplish this task.
If...else statements
Executes a piece of code when the
Easyui DataGrid is a DataGrid written in Jquery, it is a front-end Web UI technology, generally people in the production of the DataGrid is more common should be using background PHP and other background language, to directly produce HTML syntax, to
1. Const is used for class member variable definition, once defined and cannot change its value. Define defines global constants that can be accessed everywhere.
2. Define cannot be defined in a class and const can.
3. Const cannot define constants
Function code One: delete all files in directory and directory
Copy CodeThe code is as follows:
Loop Delete directory and file functions
function Deldirandfile ($dirName)
{
if ($handle = Opendir ("$dirName")) {
while (false!== ($item = Readdir
First, clear the output sequence of PHP1. PHP output cache is turned on: Echo,print, PHP output_buffring, server buffering, browser buffering display
2. PHP output Cache is not open: Echo,print, server buffering, browser buffering, browser
When we write a program, it is always inevitable to err on the wrong way, no matter how cautious. These errors often confuse the PHP compiler. If developers are unable to understand the meaning of compiler error messages, they are not only useless,
There are quite a few ways. Previously more commonly used is the IFRAME to do so. Now there is an Ajax, so the general situation is to use Ajax.
The first approach, AJAX implementations:Of course, Ajax is actually very simple to implement, but a
Memcacheq is a simple distributed Message Queuing service.
One, the application background of MemcacheqWhat is in the Web App
Do you need a message queue? The main reason is because in high concurrency environment, due to too late synchronous
GUID: The globally unique Identifier (globally unique identifier) is also known as the UUID (universally unique Identifier). A GUID is a 128-bit numeric identifier produced by a particular algorithm that indicates the uniqueness of the product.
Help the Home (www.Bkjia.com) Tutorial PHP Instance code: AJAX page display data.
Files for debugging
The following is the referenced content:Help the home to provide tutorials liehuo.net attention webmaster, building the Internet!Data
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.