Move files from one folder to another folder based on file extension - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Move files from one folder to another folder based on file extension

codecraigcodecraig Posts: 163Member
Hi,
Currently i am uploading files to a tempFiles directory on my website. I would like to create a PHP script (or function basically) that will go through the tempFiles directory and move files with the ".zip" extension to directory A and move files with the ".pdf" extension to the directory B.
anyone know how i can do this?

thanks
craig

Comments

Sign In or Register to comment.