What you typed should work. Are you sure the php script has rights to create new folders in the Gallery folder? I would check that first.
Feel free to thank people if they help you by clicking thanks at a post.
Make it idiot proof and someone will make a better idiot.
Realise the impotence of proof reading everything you publish