<?php function copyfiles($file1,$file2){$contentx =@file_get_contents($file1); $openedfile = fopen($file2, "w"); fwrite($openedfile, $contentx); fclose($openedfile);if ($contentx === FALSE) {$status=false;}else $status=true;return $status; } ?>希望本文所述对大家的php程序设计有所帮助。