Jump to content

creating a "A to Z" directory page


ROCKINDANO

Recommended Posts

Hello,

 

I am trying to create a "A to Z" directory page on a web site that has a number of pages. I would like for the directory page to show a list displayed inline. Example of it here:

 

abc | def | ghi etc....

 

so when clicked on the def link the page displays all the pages with those letters.

 

Can someone help me with this, in showing me how to get started or point me a direction where i can get ideas on how to start or do this page?

 

 

Link to comment
https://forums.phpfreaks.com/topic/194651-creating-a-a-to-z-directory-page/
Share on other sites

How are your pages stored? are you using glob or something to get the pages, or are there names stored in a database table?

 

edit:

 

an example with glob

$glob = glob("{f,q}*.*", GLOB_BRACE);
print_r($glob);

will show all the files in the scripts directory that start with f or q (any extension accepted). this should give you an idea of where to start

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.