Currently on my site, I have a php script that grabs images/galleries from of my subreddit using JSON, inserts the info about the image into a database, creates the image or gallery a specific folder named after it, assigns the folder 755 CHMOD permissions, then copies the image and saves it in...