[PHP] Re: how to get names of files...

2002-06-25 Thread Henrik Hansen

[EMAIL PROTECTED] (Tauntz) wrote:

  Hello..

  I have a problem:

  I want to get all the filenames in a folder and put each filename into a
  variable..

http://dk.php.net/manual/en/function.readdir.php

  (if there's a.gif in the folder then I want $first to be a.gif, IF
  there's also a na.jpg then I want then it should be $second .. if you
  know what I mean)

use some if's to find out in the readdir loop.

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: how to get names of files...

2002-06-25 Thread tauntz


Thank you, I got it working :)


-Original Message-
From: Henrik Hansen [mailto:[EMAIL PROTECTED]] 
Sent: 25. juuni 2002. a. 15:04
To: [EMAIL PROTECTED]
Subject: [PHP] Re: how to get names of files...

[EMAIL PROTECTED] (Tauntz) wrote:

  Hello..

  I have a problem:

  I want to get all the filenames in a folder and put each filename
into a
  variable..

http://dk.php.net/manual/en/function.readdir.php

  (if there's a.gif in the folder then I want $first to be a.gif, IF
  there's also a na.jpg then I want then it should be $second .. if
you
  know what I mean)

use some if's to find out in the readdir loop.

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php