Replacing exec cp operations by php copy