[PHP] List files in a directory using filters and exclusions

2009-06-06 Thread Rolando Santamaria Maso
Hi PHP community, here I bring a very simple and interesting function that I made for a project, it's objetive is "to list path files in a directory with the possibility of using filters and exclusions". What do you think about? --- function get_files($path, &$result, Arr

Re: [PHP] List files in a dir

2004-02-27 Thread Raditha Dissanayake
Shaun wrote: Hi, is it possible to have a file that lists all of the files in the current so that users can download them - this would be useful for a collection of images I have? Thanks for your help it's only a few lines of code and you will find it here: http://www.raditha.com/php/dir.php

Re: [PHP] List files in a dir

2004-02-27 Thread Ryan A
> Hi, Hi, > is it possible to have a file that lists all of the files in the current > so > that users can download them Yes, belive it or not...it IS possible. - this would be useful for a collection of > images I have? Sure sounds like it. > Thanks for your help Most welcome. Incase the

RE: [PHP] List files in a dir

2004-02-27 Thread Chris W. Parker
Shaun on Friday, February 27, 2004 10:14 AM said: > is it possible to have a file that lists all of the files in the > current so that users can download them - this would be useful > for a collection of images I have? yes. look up the file system functions in the m

[PHP] List files in a dir

2004-02-27 Thread Shaun
Hi, is it possible to have a file that lists all of the files in the current so that users can download them - this would be useful for a collection of images I have? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] List Files in Directory to Array

2003-06-15 Thread Bix
Hi all... Is there any way of reading the contents of a directory into an array so I can generate a listing from it? I can't see a filesystem function for this, how about with ftp functions? Am looking around at the moment but would appreciate some help. I am looking to read each file in the dir

Re: [PHP] list files in a dictory and its subdirectories

2003-02-03 Thread Jason Sheets
An easy way would be to to convert your code to a function and use recursion with an is_dir conditional. Here is a quick example, there are also a few examples in the user notes at the PHP manual for opendir or readdir. function lsdir($dir) { if ($handle = opendir($dir)) {

[PHP] list files in a dictory and its subdirectories

2003-02-03 Thread Tomas Vorobjov
hey! this is the code I'm using to get into array all filenames in a directory: $mydir = mydir //the directory name $output_file = fopen($data_file, "w"); $begin = ""); fclose($output_file); chmod($output_file, 0777); //to preview

Re: [PHP] List Files

2001-04-19 Thread Joe Stump
$foo = `ls help*`; $files = explode("\n",$foo); while(list(,$fname) = each($files)) echo $fname."\n"; --Joe On Thu, Apr 19, 2001 at 08:25:19AM -0400, [EMAIL PROTECTED] wrote: > Hi, > > Does anyone know how I can list all the files begining with help in one of my > pages. > > So I have a dir

RE: [PHP] List Files

2001-04-19 Thread Joe Sheble (Wizaerd)
iginal Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Thursday, April 19, 2001 8:25 AM >To: [EMAIL PROTECTED] >Subject: [PHP] List Files > > >Hi, > >Does anyone know how I can list all the files begining with help in one >of my >pages. > >So I

RE: [PHP] List Files

2001-04-19 Thread Matthew Luchak
ydara Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] List Files Hi, Does anyone know how I can list all the files begining with help in one of my pages. So

[PHP] List Files

2001-04-19 Thread KPortsmout
Hi, Does anyone know how I can list all the files begining with help in one of my pages. So I have a dir which has various files, like so: help_me.php help_you.php help_us.php Is there some command I can use to select all the files and then print them out? TIA Ade -- PHP General Mailing L

RE: [PHP] list files in a diretory

2001-04-09 Thread Boget, Chris
> How can I list the files in a diretory? > Something like, get the files name in an array... http://www.php.net/manual/en/class.dir.php Chris

[PHP] list files in a diretory

2001-04-09 Thread Augusto Cesar Castoldi
How can I list the files in a diretory? Something like, get the files name in an array... thanks, Augusto Cesar Castoldi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ