In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of the meaning of the _ _ file__ attribute in php mysql, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading what the _ _ file__ attribute means in this php mysql. Let's take a look at it.
In php mysql, "_ _ file__" means "get the file path", which is a system predefined constant that gets and returns the absolute path of the current file (including the file name) or, in the case of a symbolic link, the parsed absolute path.
Operating environment of this tutorial: windows7 system, PHP7.1&&mysql8 version, DELL G3 computer
"_ _ file__" is a magic constant (a predefined constant by the system) that returns the full path and file name of the currently executed PHP script, that is, the absolute path (including the file name).
Since PHP 4.0.2, _ _ FILE__ has always included an absolute path (or parsed absolute path in the case of symbolic links), while previous versions sometimes included a relative path.
Example:
Expand knowledge:
There are eight magic constants in PHP, as follows:
_ _ LINE__: the current line number in the file
_ _ FILE__: absolute path to the current file (including file name)
The absolute path to the current file of _ _ DIR__: (excluding the file name), equivalent to dirname (_ _ FILE__)
Name of the current function (or method) of _ _ FUNCTION__:
_ _ CLASS__: the current class name (including the scope or namespace of the class)
_ _ TRAIT__: current trait name (including the scope or namespace of the trait)
_ _ METHOD__: current method name (including class name)
_ _ NAMESPACE__: the name of the namespace of the current file.
Note: unlike predefined constants, magic constants are case-insensitive.
This is the end of the article on "what is the meaning of the _ _ file__ attribute in php mysql?" Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the meaning of the _ _ file__ attribute in php mysql". If you still want to learn more knowledge, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.