Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: To get the list of file names in a directory


Message #1 by "arun" <arun@l...> on Wed, 6 Feb 2002 14:29:58 +0530
This is a multi-part message in MIME format.

------=_NextPart_000_00A3_01C1B373.5225BB60
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Try dir functions

$handle=3Dopendir('.');
echo "Directory handle: $handle\n";
echo "Files:\n";
while (($file =3D readdir($handle))!=3D=3Dfalse) {
    echo "$file\n";

Nop
Thailand.
  ----- Original Message -----
  From: arun
  To: professional php
  Sent: Wednesday, February 06, 2002 3:59 PM
  Subject: [pro_php] To get the list of file names in a directory


  Hi,

  Can i get the list of file names in a particular directory. Say i have 
a directory and i want to know all the file names in that particular 
directory, how to loop through the directory?

  arun
$subst('Email.Unsub').



  Return to Index