Sorry to bother you with this. I'm running mkdir to replicate directories that I have stored in a DB.
If I display the data on a php page the directories look like this:
element1/Content/EPAC/PROD
element1/Content/EPAC/TEST
element1/Content/EPAC_SG/PROD
element1/Content/EU/PROD
element1/Content/EU/TEST
The above is a subset of the data. What is happening with the above subset when I loop through it, it creates the directory element1/Content/EPAC/PROD but ignores element1/Content/EPAC/TEST and element1/Content/EPAC_SG/PROD, Then it creates element1/Content/EU/PROD but ignores element1/Content/EU/TEST etc and continues through the loop like that. The code I'm using is:
foreach($NSRarray as $value)
{
mkdir("ftpfolders/$value", 0700, true);
}
*the $value variable above is the 'element1/Content/EPAC/PROD' record taken from the DB.
Any ideas? Thanks in advance, Ste