1. Overview
Sonarqube is an open platform for managing code quality that can quickly locate potential or obvious errors in your code. High-quality management software code, timely analysis of code quality and give a reasonable solution, you can
PHP introduction PHP is a server-side, Cross-platform, HTML-embedded scripting language defined by the official site Www.php.net of PHP (Hgpertext preprocessor or personal home Page Tools). In fact, it is as familiar as the ASP, is a commonly used
Learn the essence of PHP and write efficient PHP code to ensure the quality. I. using static analysis tools to measure quality we use static analysis and measurement code without running it. In fact, we use these tools to evaluate code, read files,
It is very easy to teach to improve the quality of php code by 36. 1. do not use relative paths. you will often see: require_once (... libsome_class.php). This method has many disadvantages: it first looks for the specified php inclusion path and
Php tips: 50 practical skills for high-quality php code (I). I hope you will like it. I hope you will like the practical skills of 50 high-quality PHP codes.
1. do not use relative pathsWe often see:
require_once('../../lib/some_class.php');
This
It first looks for the specified php inclusion path and then finds the current directory. therefore, excessive paths are checked. if the script is included by another script, its basic directory is changed to the directory where another script is
Php code quality is greatly improved. For more information, see
1. do not use relative pathsWe often see:
Require_once ('../lib/some_class.php ');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds
50 high-quality PHP code practical tips, I hope you like it.
1. Do not use relative pathsOften you will see:
Require_once ('.. /.. /lib/some_class.php ');
This approach has many drawbacks: it first finds the specified PHP include path, and then
Then the article "High-quality PHP Code 50 Practical Skills Necessary (above)" continue to study.
26. Avoid writing SQL directly, abstractpatiently wrote too many of the following statements:
$query = "INSERT into the users (name, email,
How to write excellent PHP code? Now, I can implement almost all the requirements, but the code is messy and the logic is not very good. how can I improve it? How to write excellent PHP code? Now, I can implement almost all the requirements, but the
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.