All pastes #34636 Raw Edit

WB0TRA

public text v1 · immutable
#34636 ·published 2005-12-22 20:59 UTC
rendered paste body
Below is an extract of a part of a script file and the error it produces.  Why would "scandir()" be an undefined function?


$Files_Array = SCANDIR( $Src_Path );

print_r( $Files_Array );

#
# eof:  /home/lee/scripts/bsg_dl.scr
#
[lee@g3m202 scripts]$ vi bsg_dl.scr
[lee@g3m202 scripts]$ ./bsg_dl.scr
PHP Fatal error:  Call to undefined function:  scandir() in /home/lee/scripts/bsg_dl.scr on line 25
Content-type: text/html
X-Powered-By: PHP/4.3.9