Thanks, I figured out how to do it using those functions. However, I still have just one more question. Is there a way I can check to see if the file and directory are already made, so they don't get over written. Something like an if statement to check if the directory is there or not.
EDIT: Found it, I used is_dir() and it works fine.