At 10:33 PM 4/11/2002 Thursday, Phieu Huynh wrote:
>I also try the following code and still have the same problem.
>I am runing php4.0.?, solaris(linux)
>
>$dir_name = "/export/home/phuynh/php/main/student/upload/";
>$dir = opendir($dir_name);
> while (false !== ($file_names = readdir($dir))) {
> echo "$file_names";
> }
> closedir($dir);
Your while statement needs to read.
> while (false != ($file_names = readdir($dir))) {
> echo "$file_names";
> }
Not !==
But !=
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php