What is the definition and usage of the PHP chdir () function? In PHP, the chdir () function is to change the current directory, what it means is to get the current directory, a directory, your current directory is the Www/index directory, when
What is the definition and usage of the PHP chdir () function?
In PHP, the chdir () function is to change the current directory, what it means is to get the current directory, a directory, your current directory is the Www/index directory, when
This article mainly introduces the usage of the chdir () function in php, and describes how to switch directories using the chdir function in the form of an instance. For more information, see
This article mainly introduces the usage of the chdir ()
Example of chdir () function usage in PHP, Phpchdir
This example describes the use of the ChDir () function in PHP. Share to everyone for your reference. The specific usage analysis is as follows:
PHP chdir () function syntax: BOOL switch directory
ChDir-Change DirectoryDescribeBoolean chdir (string $ directory)Change the directory for the current directory of PHP.ParametersDirectoryThe new current directoryreturn valueReturns TRUE or false success failure.InstanceExample of # 1 chdir ()
This article mainly introduces the usage of the chdir () function in php, and describes how to switch directories using chdir in the form of an instance, for more information about the chdir () function in php, see the example in this article. Share
This article mainly introduces the usage of the chdir () function in php, and describes how to switch directories using chdir in the form of an instance, for more information about the chdir () function in php, see the example in this article. Share
Swoole version:1.9.6In fact, it is not related to the version of Swoole, because the original code system, FPM mode, at startup, the use of the CHDIR function to change the current directory, and other code in the automatic loading of classes, are
The ChDir () function changes the current directory.
Grammar
ChDir (directory);
Parameter directory is required. Specifies the new current directory.
The sample code for the ChDir () function is as follows:
The ChDir () function changes the
Php chdir () function Syntax: change the current working directory to. Changes by changing the directory (string directory) of the bool switch.
Php tutorial chdir () functionSyntax: Boolean switch directory (string directory) dirDirectory Changes
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.