using internal copy command of php to improve copy performance