I scan a directory with PHP which includes only folders:
$folders = scandir('gallery');
Now i want to check if a string in javascript a folder in this directory.
if(theString == allTheFolders){
alert('yay');
}
Now $folders is an array with strings in it. To get all the strings i use a foreach loop and ignore the '.' & '..' directory's. But how can i get all these folders in the if loop?
Hope you understand my question!
gallery's folder structure might not be security-essential ;)