Blogger Information
Blog 9
fans 0
comment 0
visits 6146
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
文件的移动、拷贝、删除
自己做笔记用的
Original
742 people have browsed it

bool rename($旧名,$新名);    文件的重命名

<?php
 $oldfile= 'h:\\test1.txt';
 $newfile='h:\\test2.txt';
 echo rename(oldefile,newfile);
 ?>

bool copy(源文件,目标文件); 文件的复制

<?php
$filename="h:\\test.txt";
$copyfile="h:\\copytest.txt";
echo copy($filename,$copyfile);
?>

bool unlink(指定路径的文件);文件的删除

<?php
$filename="h:\\test.";
echo unlink($fliename);
?>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post