To be able to accomplish this, the existing folder needs to have 777 permissions level in order to create the new folder.
the code for the second attempt looks correct, but i suspect the existing folder does not have the proper permissions to allow a new older to be created.