Re: Reading files from a directory
| From: | Richard Lynch | Date: | Sat, 25 Aug 2001 00:58:20 +0000 |
| Subject: | Re: Reading files from a directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64376@lists.php.net to get a copy of this message | ||
Sounds like a bug...
Start searching on http://bugs.php.net for similar problems, make
sure
you've got current versions of OS and PHP.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Niklas lampén <niklas.lampen@publico.fi>
Newsgroups: php.general
To: Php-General <php-general@lists.php.net>
Sent: Friday, August 24, 2001 2:11 AM
Subject: Reading files from a directory
> I have problem with reading files from directory.
>
> This is the code:
>
> <?
> $Handle = opendir('/www/publico2/docs/map');
>
> while ($file = readdir($Handle)) {
> print "$file<br>\n";
> };
> ?>
>
> That is ALL code on a script file.
> These are the file in directory:
>
> .
> ..
> array_maker.php4
> map.php4
> renamer.php4
> border_bl.gif
> border_bm.gif
> border_br.gif
> border_ml.gif
> border_mr.gif
> border_ul.gif
> border_um.gif
> border_ur.gif
> grid.gif
> map_config.php4
> map_dot.php4
> handle.php4
> map_dot.gif
> core
> md_998634933_071758800998634933.gif
> md_998634937_060465500998634937.gif
> md_998634941_025996400998634941.gif
>
> If I have more than five of the files named like
> "md_123456789_12345.....gif" page returns Internal Server Error (500).
What
> can cause this? Is there a solution?
>
>
> Niklas
>