Its syntax is: int copy (string source, string destination) <? $data_file = "data.txt"; copy($data_file, $data_file.'bak') or die("Could not copy $data_file"); ?>