Tips: Delete a Copy file in PHP .? PHP $ filedirlist. PHP; $ result @ unlink ($ file); if ($ resultfalse) {echo mosquito drive away;} else {echo cannot drive away ;}? You can use. PHP to delete a Copy file from a copy file.
- <? PHP
- $ File = 'dirlist. php ';
- $ Result = @ unlink ($ file );
- If ($ result = false ){
- Echo 'mosquito drive away ';
- } Else {
- Echo 'cannot get rid of it ';
- }
- ?>
You can.
PHP also makes it easy to delete the copy file from the copy file:
- <? PHP
- $ File = 'ang.txt ';
- $ Newfile = 'ji.txt ';#
The parent folder of this file must be writable.
- If (file_exists ($ file) = false ){
- Die ('small samples are not online and cannot be copied ');
- }
- $ Result = copy ($ file, $ newfile );
- If ($ result = false ){
- Echo 'copy memory OK ';
- }
- ?>
The above is a summary of PHP's tips for deleting duplicate files.
Http://www.bkjia.com/PHPjc/445970.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445970.htmlTechArticle? PHP $ file = 'dirlist. PHP '; $ result = @ unlink ($ file); if ($ result = false) {echo 'mosquito drive away';} else {echo 'cannot drive away ';}? You can use. PHP to delete the copied file...