base64_decode_safe (line 184)
Decodes a string in a format similar to base64.
void
base64_decode_safe
( $text)
base64_encode_safe (line 174)
Encodes a string in a format similar to base64, but that can be used as a filename.
void
base64_encode_safe
( $text)
check_in_filetype (line 219)
Checks to see if the given filename has a passed extension. $filename does not have to be an actual existing file.
true
check_in_filetype
(string $filename, [mixed $ext = array()])
-
string
$filename: filename to check
-
mixed
$ext: string extension or array of extensions to check. Should not include a period.
collapse_dir (line 242)
This function takes all files under $start_dir and places them in
$dest_dir. All files are transformed from: ./foo/bar/quux to ./foo_bar_quux If there are any naming conflicts, the conflicts' basename will have a random (non-conflicting) 4-character string appended to it.
void
collapse_dir
( $dest_dir, [ $file_type_list = array()], [ $start_dir = "."], &$translation)
-
$dest_dir
-
$file_type_list
-
$start_dir
-
&$translation
ellipsize (line 51)
void
ellipsize
( $string, $limit, [ $repl = "..."])
endsWith (line 39)
void
endsWith
( $str, $sub)
file_put_contents (line 129)
void
file_put_contents
( $n, $d, [ $flag = false])
flatten_array (line 43)
void
flatten_array
( $value, $key, &$array)
globr (line 11)
Recursive version of glob
array
globr
(string $sDir, string $sPattern, [int $nFlags = NULL])
-
string
$sDir: Directory to start with.
-
string
$sPattern: Pattern to glob for.
-
int
$nFlags: Flags sent to glob.
memory_get_usage (line 98)
void
memory_get_usage
()
pause (line 279)
Takes input from STDIN and then continues.
void
pause
()
random_string (line 267)
Generates a random alphanumeric string.
void
random_string
([ $length = 10])
startsWith (line 36)
void
startsWith
( $str, $sub)
stripos (line 92)
void
stripos
( $haystack, $needle, [ $offset = 0])
-
$haystack
-
$needle
-
$offset
strripos (line 74)
void
strripos
( $haystack, $needle, [ $offset = 0])
-
$haystack
-
$needle
-
$offset
substr_in_array (line 196)
Checks to see if $needle is anywhere within any of the components of $haystack.
Works recursively.
void
substr_in_array
( $needle, $haystack)
sys_get_temp_dir (line 147)
void
sys_get_temp_dir
()
unlink_recursive (line 59)
void
unlink_recursive
( $dir, [ $del_self = false])