The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How do I read files names?
dmak
post Jan 11 2008, 04:24 AM
Post #1


Newbie
*

Group: Members
Posts: 19
Joined: 2-January 08
Member No.: 4,626



I am building a gallery script for myself and I need some help. Please don't suggest me to use already made gallery scripts. I do not want to argue why.

Lets say my website is...

smile.com/

Smile.com/albums/

So, I created a set of tables where it is only created if there is a folder under ablums. For ex, lets say i have Pokemon under albums. It will create this

CODE

<table>
  <tr>
    <td>
      Pokemon (AKA Box 1)
    </td>
  </tr>
  <tr>
    <td>
      test2
      </td>
  </tr>
  <tr>
    <td>
      test3
    </td>
  </tr>
</table>

So remember my folder was called pokemon. In box 1, I want it to say Pokemon. Let me give 1 more example.

Ok, so now I create a new folder under smile.com/albums/ called Power. Upon creating the folder it will also create (by itself) a new set of tables.


CODE

<table>
  <tr>
    <td>
      Power (aka box 1)
    </td>
  </tr>
  <tr>
    <td>
      test2
      </td>
  </tr>
  <tr>
    <td>
      test3
    </td>
  </tr>
</table>


How can I do this?

This post has been edited by dmak: Jan 11 2008, 04:26 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 05:02 AM