The following is a compilation of tutorials to explain how to install and configure phpdbg, a powerful php debugging tool. PHPDBG is a php sapi module, you can control the PHP runtime environment without modifying the code or affecting the
The technology is not refined. If you have any mistakes, please point out that I will correct them.Copy codeThe Code is as follows:Header ('content-Type: text/html; charset = UTF-8 ');Echo ' ';Function var_array ($ array){Echo ' ';Var_dump ($ array )
I don't know if I want to learn PHP ~ The more you write, the less boring you are.Class createdb // Class start{Var $ db = "localhost"; // database address;Var $ dbname = "root"; // user name;Var $ dbpwd = ""; // password;Var $ dbtable = "mysql"; //
Understanding PHP from a simple programThe PHP site's online tutorials are already great. This part of this article will familiarize you with PHP. I can't do anything without omission. My goal is to allow you to quickly start your PHP programming.3.1
Php multi-dimensional array quickly queries the parent key and parent key value based on the key name
/**
* FILE_NAME: arr. php FILE_PATH: test/
* Quick query of the parent key and parent key value based on
Php magic variables and magic function examples
Echo 'This is LINE'. _ LINE ';
?>
Output result: This is line 2.The complete path and FILE name of The _ FILE. If it is used in a file to be included, the
This article describes in detail the PHPDBG, a powerful tool for PHP Debugging. if you are interested, refer to PHPDBG, which is a php sapi module, you can control the PHP runtime environment without modifying the code or affecting the performance.
Brief description:The/user/UserLogin. asp file of the old Y Document Management System v2.5 sp2 has an SQL injection vulnerability, which allows malicious users to obtain any data in the database through the vulnerability. In addition, the
There are three properties for functions and class variables in the PHP class: Public protected private, when to use what attributes are good entanglements, deliberately found an instance, so that looks clearer.Public represents the global, and the
compiler functionWordPress uses the following functions to facilitate language localization.
__()
_e()
_x()
_ex()
_n()
The functions listed above are used to contain the strings of the required translations, depending
config.php file
Your user name and password, as well as the database name, and the table name, are defined here once!!!
Because of the fear that the user name and password are seen by others through the browser, so the PHP extension, so that
Powerful PHP debugging tool phpdbg php debugging tool
PHPDBG is a php sapi module that can control the PHP runtime environment without modifying code or affecting performance.PHPDBG aims to become a lightweight, powerful, and easy-to-use PHP
PHPDBG, the powerful tool for PHP debugging, and phpdbg. PHPDBG is a powerful PHP debugging tool. phpdbgPHPDBG is a php sapi module that can control the PHP runtime environment without modifying code or affecting performance. PHPDBG, PHPDBG, a
I think so:
Iterate through multidimensional arrays and create a one-dimensional array by indexing all the keys;
Each time through the key name to check the parent array and data
OK, the code is as follows
Indexkey Creating an indexed array function:
Constant detection uses defined, and defining constants is define. Note the constants to be detected need to use quotation marks (single and double), such as:
The code is as follows
if (defined (' Const_name ')) {Do something}
Variable detection
Echo ' This is the first '. __line__. ' The line ';
?>
Copy CodeThe output is: This is the "2" lineThe full path and file name of the __file__ file. If used in the included file, returns the file name that is included. From PHP 4.0.
Copy CodeThe code is as follows:
if (defined (' Const_name ')) {
Do something
}
Variable detection is the use of isset, note that variables are not declared or declared when the assignment value is Null,isset return false, such as:
Copy the Code
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.