Home >Backend Development >PHP Tutorial >PHP basic exercises--directory operations_PHP tutorial

PHP basic exercises--directory operations_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 10:36:321219browse

php basic exercises - directory traversal:

PHP basic exercises--directory operations_PHP tutorial ("content-type:text/html;charset=utf-8" = "./final/factapplication" listdir( = ( ( !== ( = ( = .'/'. ( != '.' && != '..' (( ."
"(); listdir

Core: Classic applications of recursion, as well as basic operations on files and directories.

PHP basic exercises--directory operations_PHP tutorial = "../fileupload" = "b" copydir(, ( = ( ( !== ( = ( = ."/". = ."/". ( != "." && != ".." ((, (, (, ); copydir

Core: copy function.

PHP basic exercises--directory operations_PHP tutorial = 'a' deldir( = ( ( !== ( = ( = .'/'.( != '.' && != '..' (((( (); deldir

Core: Note that unlink deletes the file with path.

PHP basic exercises--directory operations_PHP tutorial = "a" dirsize( = ( ( !== ( = ( = .'/'. ( != '.' && != '..'(( = + ( ( dirsize(); dirsize

Core: Understand recursive functions by determining where $tot returns.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/738553.htmlTechArticlephp basic exercises - directory traversal: ("content-type:text/html;charset=utf-8" = "./final/factapplication" listdir( = ( ( !== ( = ( = .'/'. ( != '.' != '..' ( ( ."br" ( ); listdir core: . ..
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn