Hello! the code below echoes "error". What am I doing wrong? PHP: --------- mkdir("copy", 0777); $ret_val = copy("test.txt", "copy"); echo ( $ret_val ? "success" : "error" ); --------- Also tried this and it's the same: PHP: --------- mkdir("copy", 0777); $ret_val = copy("test.txt", "copy/test.txt"); echo ( $ret_val ? "success" : "error" ); --------- But if I want to make a copy of test.txt in the same directory, this goes fine. Is there any function to move a file in another directory? Thanks
More...