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 (string directory) dirdirectory change to.changes Current working directory.
Syntax: BOOL switch directory (string directory) dirdirectory change to.changes Current working directory, returns true on success, or False if an error occurs.
The sample code is as follows:
Copy the Code code as follows: <?php
if (ChDir ("upload")) {
Print "Changed current directory successfully";
}//output:changed Current directory successfully
?>
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/910591.html www.bkjia.com true http://www.bkjia.com/PHPjc/910591.html techarticle php chdir () function Usage example, Phpchdir This example describes the use of PHP chdir () function. Share to everyone for your reference. The specific usage analysis is as follows: PHP chdir () function Syntax ...