Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,466 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,435 people online right now. Registration is fast and FREE... Join Now!




Dir To An Array?

 
Reply to this topicStart new topic

Dir To An Array?

Menekali
post 19 Feb, 2005 - 03:19 PM
Post #1


New D.I.C Head

*
Joined: 11 Feb, 2005
Posts: 33


My Contributions


Hi, all. I have a small question. Im writing a script that will take all of the files in a directory and output them line for line on a php page, then save each file with its coorosponding exetension into another directory.

I have mosf of the code down and working on a one file basis. What i'd like to know how to do is, how to add a directory into an array. Get the files of a directory and add them into an array. Could anyone help me a bit on this? Thanks!
User is offlineProfile CardPM

Go to the top of the page

snoj
post 20 Feb, 2005 - 11:39 AM
Post #2


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


http://www.zend.com/zend/art/recursion.php
User is offlineProfile CardPM

Go to the top of the page

Menekali
post 20 Feb, 2005 - 02:02 PM
Post #3


New D.I.C Head

*
Joined: 11 Feb, 2005
Posts: 33


My Contributions


QUOTE(hotsnoj @ Feb 20 2005, 12:39 PM)

Thank you for the link i will read up =DD
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 20 Feb, 2005 - 07:12 PM
Post #4


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


You're welcome.
User is offlineProfile CardPM

Go to the top of the page

skyhawk133
post 20 Feb, 2005 - 07:17 PM
Post #5


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,844



Thanked 45 times

Dream Kudos: 1650

Expert In: Web Development

My Contributions


QUOTE(cyberscribe @ Feb 20 2005, 09:12 PM)
You're welcome.

Lol.
User is offlineProfile CardPM

Go to the top of the page

Acid Reign
post 21 Feb, 2005 - 01:52 AM
Post #6


Touched by his noodly appendage

*****
Joined: 11 Nov, 2002
Posts: 2,123



Dream Kudos: 2
My Contributions


recursion is a dirty thing.

i hate recursion.


(well, i hate thinking through it for AP comp sci. sad.gif)
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:40PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month