im writing a php script today and i want to know how to copy a file from one directory to another using php

you see, i have all my images in the database and i need to move them to another website but the other site will be using a different directoyr name

sow can i copy files from one directory to another with php?