getPathPhpFiles (function)

Return to Knowledgebase

Purpose

Retrieve a list of all .php files in folder

Location

users/helpers/permissions.php

Parameters

# Parameter Data Type Required Description
1 $absRoot Yes undocumented
2 $urlRoot Yes undocumented
3 $fullPath Yes undocumented

Example

getPathPhpFiles($abs_us_root,$us_url_root,'usersc/plugins/');

Further Documentation:

The first two arguments are always $abs_us_root $us_url_root (and probably should have been obtained automatically). The third argument is the folder that you want to retrieve all the php files from. It should end with a trailing '/' Will return an array of (usually) 10 files. Each item of the array will be an array with the path of the file in it.