With this applet, phper do not have to manually delete the directory files on the computer, in the practice of PHP directory file operation can use this function, on this basis can also increase the Browse folder directory, and then delete.
Code One:
D_rmdir ((!( = @( ( = @ ())!==
(! = '. ' && ! = ' ... '
= . '/' .
() d_rmdir (): (
(
< Span return< span>
(
(D_rmdir ("./temp") Span) (Span> "succes"
"false"
< Span Span>
?>
Code two, from PHP Chinese online manual:
Functionremove_directory ((=(""(!== (= (
(!=". &&!= "..."
( ("/"
"
/ "
< Span unlink< span> ("/"
"removing /
(
(
"Removing
" span; }}< span>?>
< span="">
Code Three:
Functionremovedir (
(! (
=@ (
(=@ ( ))!==
(!= '. &&!= '.
=. ' /'.
() removedir (): @< Span unlink< span> (
(
?>
http://www.bkjia.com/PHPjc/440229.html www.bkjia.com true http://www.bkjia.com/PHPjc/440229.html techarticle with this small program, phper do not have to manually delete the directory files on the computer, in the practice of PHP directory file operation can use this function, on this basis can also increase ...