reset and begin
4/12/2010

chuyển file trong php

The trick is to use the rename() function. If you just wanted to rename a file, you would use the code:
<?php
rename("oldname.txt", "newname.txt");
?>

To move a file, it is something similar:
<?php
// Move file into folder called 'store'
rename("file.txt", "./store/file.txt");
?>
<?php
rename("D:/desktop/12.rar","D:/desktop/a/12.rar");
?>

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .