Jump to content


Get directory listing


2 replies to this topic

#1 N4Z.

    Call me Yoda

  • Members
  • PipPipPipPip
  • 3,016 posts
  • Gender:Male
  • Location:127.0.0.1
  • Interests:Designing, Apple Fan Boy, Music Production and Weekends!

Posted 02 September 2006 - 02:04 PM

Hey all..

I need a script that can grab a file listing in a dir..

I am going to be making an interface and everything.. I just need the files itself..

Example:

If users want to view PSDs in a folder which is located: http://psdoutlet.com...tories/banners/

How would i make it so a script grabs the file names and urls and lists them in one code?

I hope you understand what I mean..

Thanks,
Tom

#2 N4Z.

    Call me Yoda

  • Members
  • PipPipPipPip
  • 3,016 posts
  • Gender:Male
  • Location:127.0.0.1
  • Interests:Designing, Apple Fan Boy, Music Production and Weekends!

Posted 02 September 2006 - 02:21 PM

haha yeah me too, ive been learning the basics of PHP for a few days now, it seems easier every day.

Thanks alot ^_^

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 02 September 2006 - 02:41 PM

This is a frequently asked question. Please use the form search next time.

Also, php.net has all the info you need on this.
http://php.net/manual/en/class.dir.php





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users