Anyone firmiliar with PHP?
I can't figure out why this won't work, I found it off of http://px.sklar.com/ and then tweaked it by adding the loop to display all the files in the array...
<? /* This script read the filenames from a specified directory and returns them in an array. The number of filenames is also returned. Copyleft(L) 1999 Eric Persson, eric@persson.tm, http://www.persson.tm/scripts/ */ Function searchdir($basedir) { global $filelisting, $number; unset($filelisting); unset($number); $handle=opendir($basedir); while ($file = readdir($handle)) { if ($file=="." or $file=="..") { ** else { $filelisting[]="$basedir$file"; **; **; $number=sizeof($filelisting); **; searchdir("./"); for ($i = 0; $i <= $number; $i++) { echo $filelisting[$i]; ** echo $number; //echos the size of the array ?> but when I run this file on my image directory, it doesn't echo anything. :confused: |
Why is the closing bracket for {** considered censored by two ** on here, Chad?
|
php is one of the the only codes i didnt take time to learn...kinda wish i would have so I could help you here :(
|
Originally Posted by meissenation
Why is the closing bracket for {** considered censored by two ** on here, Chad?
|
All times are GMT -4. The time now is 05:25 PM. |
© 2024 MH Sub I, LLC dba Internet Brands