I want to create a directory and a sub directory in it!
I was using: mkdir($dir,0777);
This will work for the last sub directory name.
the code will create a new directory in dir test if the dir tes already exists!
But what if the directory test does not exists?
What code do I have to use to check if dir home is available - if not create - if shop is available - if not create - if shop is available - if not create - and at last if one is available - if not create!