phpDocumentor default
[ class tree: default ] [ index: default ] [ all elements ]

Procedural File: safe_glob.php

Source Location: /Libs/free.fr/safe_glob.php

Page Details
Filesource:  Source Code for this file
Constants
GLOB_NODIR  [line 6]

GLOB_NODIR = 256

Extra GLOB constant for safe_glob()


[ Top ]

GLOB_NODOTS  [line 8]

GLOB_NODOTS = 1024

Extra GLOB constant for safe_glob()


[ Top ]

GLOB_PATH  [line 7]

GLOB_PATH = 512

Extra GLOB constant for safe_glob()


[ Top ]

GLOB_RECURSE  [line 9]

GLOB_RECURSE = 2048

Extra GLOB constant for safe_glob()


[ Top ]


Functions
safe_glob  [line 30]

void safe_glob( $pattern, [ $flags = 0]  )

A safe empowered glob().

Function glob() is prohibited on some server (probably in safe mode) (Message "Warning: glob() has been disabled for security reasons in (script) on line (line)") for security reasons as stated on: http://seclists.org/fulldisclosure/2005/Sep/0001.html

safe_glob() intends to replace glob() using readdir() & fnmatch() instead. Supported flags: GLOB_MARK, GLOB_NOSORT, GLOB_ONLYDIR Additional flags: GLOB_NODIR, GLOB_PATH, GLOB_NODOTS, GLOB_RECURSE (not original glob() flags)

Parameters:
   $pattern: 
   $flags: 

API Tags:
Deprecated:  

Information Tags:
Author:  BigueNique AT yahoo DOT ca

[ Top ]


Documentation generated on Mon, 13 Aug 2012 23:01:11 +0200 by phpDocumentor 1.4.4