Statement: This article is intended for technical exchanges and is not intended for the "square" (the new version of the square educational administration system password processing method has also changed, just use this as an introduction ......)!
You should be a senior online reader, and the younger brother is brave enough to ask, when surfing the internet, in addition to soaking the MM, bumping the Forum, throwing bricks ...... In addition, what activities are most carried out? By the way,
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
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
Improvement of PHP code quality 36 1. do not use relative paths
We 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 the current directory.
1. Do not use relative paths
Often you will see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first looks for the specified PHP include path and then finds the current directory.
Therefore, too
You will often see:
1
require_once
(
'../../lib/some_class.php'
);
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then
1. Do not use relative pathsYou will often see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then finds the current directory.
Therefore, too many paths
Base64 encoding is a commonly used encoding method in program development. It is a representation of binary data based on 64 printable characters. It is usually used to store and transmit binary data encoding methods! It is also a common MIME (multi-
Currently, text and PDU (Protocol Data Unit) are commonly used for sending short messages. Use text mode to send and receive short message code simple, easy to achieve, but the biggest drawback is not to send and receive Chinese text messages, and
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.