- Berichten: 82
- Ontvangen bedankjes 5
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.
The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.
But, as far as I am aware, glibc doesn't support '**' natively.John Smith schreef : If you look at the PHP manual you'll see the first line is
The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function
True, but you need to look further at the glob_recursive function and see that the next part then traverses recursively the directories. That first glob call (in effect) just gets any matching names at the top-level or 1 sub-directory down (depending on the pattern).As far as I can see in the PHP glob page all the recursive examples are using /**/ or **/** to return something slightly more than what the built in functionality provides but for example you will see
Code:$ar=glob_recursive($s."**/**");
being called and then looking at the glob_recursive function we have
Code:function glob_recursive($pattern, $flags = 0){ // forked from https://github.com/rodurma/PHP-Functions/ // blob/master/glob_recursive.php $files = glob($pattern, $flags); .....
where you see that the $pattern of $s."**/**" is being passed straight into glob() in the first statement
Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

