Copying PHP files from one server to another

rogsmith

New Member
I am trying to copy some files from one server to another using PHP.Its working perfectly for text and image files, however, if the file I try to copy is a PHP file itself it bombs and copies some funny data as though it was trying to execute the file.Is there a special way to copy example.php from server A to server B?\[code\]for($i = 0; $i < count($serverAFiles); $i++) { set_time_limit(1800); $serverAFiles[$i] = trim($serverAFiles[$i] ); copy ($serverAFiles[$i] , $serverBFiles[$i]);}\[/code\]
 
Back
Top