| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Nov 2004 Location: Orange County, California.
Posts: 389
![]() | getting a list of files in a directory hi guys, i'm wondering if someone knows of a function, or method of getting a list of all the files in a directory... id like to put all the files into one string name like this: $string = "file1.bmp:file2.bmp:file3.bmp" so that i can explode it later in the script for use.... if someone can help me with a method like this id be extremely greatful, I'm doing a job for work and I need is as soon as possible ![]() Thanks, Jeremy
__________________ My del.icio.us |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | You could use glob http://php.net/glob PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Nov 2004 Location: Orange County, California.
Posts: 389
![]() | thanks alot that worked perfectly!!!
__________________ My del.icio.us |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP includes refererencing files from different directory thread | FreeBaGeL | Programming | 6 | 03-08-2005 12:10 PM |
| public_html | redhippo | Web Design Discussion | 8 | 02-27-2005 12:47 PM |
| 2 Huge Name Forsale | Vegas Entertainment | Domains For Sale - Make Offer | 9 | 09-21-2004 02:37 PM |
| List of all available ONE WORD domains: .com, .net, .info | ncchinh | For Sale / Advertising Board | 7 | 09-10-2004 11:42 PM |