On Sat, 2002-05-11 at 15:52, olinux wrote:
> $dirPath = "C:\somepath";
> $dhandle = opendir($dirPath);
>
> while ($filename = readdir($dhandle)) {
This will bail on the first directory entry which has a name which
evaluates to false. Try it after 'touch 0' in the directory you're
scanningth
$dirPath = "C:\somepath";
$dhandle = opendir($dirPath);
while ($filename = readdir($dhandle)) {
echo $filename . "";
}// end read filenames
--- Andreas Indahl <[EMAIL PROTECTED]> wrote:
> Hi!
>
> How can I read all files in a directory, when I
> don't know which files are
> there?
>
> Sin
On Sat, 2002-05-11 at 15:39, Andreas Indahl wrote:
> Hi!
>
> How can I read all files in a directory, when I don't know which files are
> there?
>
> Sincerely
> Andreas Indahl
Try some of the examples from the manual:
http://www.php.net/manual/en/function.opendir.php
http://www.php.net/manua
On Sun, 12 May 2002 00:39:21 +0200, you wrote:
>How can I read all files in a directory, when I don't know which files are
>there?
http://www.php.net/manual/en/class.dir.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See http://php.net/readdir for a full example.
On Sun, 12 May 2002, Andreas Indahl wrote:
> Hi!
>
> How can I read all files in a directory, when I don't know which files are
> there?
>
> Sincerely
> Andreas Indahl
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, vis
Hi!
How can I read all files in a directory, when I don't know which files are
there?
Sincerely
Andreas Indahl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
6 matches
Mail list logo