- < ? Php
- $ file = ' Dirlist. PHP ';
- $ result = @unlink ($file);
- if ($result = = False) {
- Echo ' Mosquitoes have driven away ';
- } else {
- Echo ' cannot be driven away ';
- }
- ?>
Can.
It is also easy for PHP to delete the copied files from the copied files:
- < ? PHP
- $ file = Yang.txt ' ;
- $ newfile = ' ji.txt ' ; #
The parent folder of this file must be able to write
- if (file_exists ($file) = = False) { /span>
- die (' sample not online, cannot copy ');
- }
- $ result = copy ($file, $newfile);
- if ($ result = False) {
- echo ' copy memory OK ';
- }
- ?>
The above is the PHP delete copy files related tips summary.
http://www.bkjia.com/PHPjc/445970.html www.bkjia.com true http://www.bkjia.com/PHPjc/445970.html techarticle ? PHP $ file = ' Dirlist. PHP '; $ result = @unlink ($file); if ($ result ==false) {echo ' Mosquitoes drove away ';} else{Echo ' Can't Get Away ';}? Can. PHP Delete copied files in copy file with ...