set up a php script to scan directory for files