[PHP] Directory System Splitter

2002-04-27 Thread Randum Ian

Hi guys, trying to get my head around possible code for this problem.

My website has various sections which have their own directory like below:

HOME - Main part of the website
CHARTS - Various DJ charts
MUSIC - Review, News and other things

and so on..

At the top of each page I have a link panel which depending on which section
of the site you are in shows the links back down the directory system.

For example:

http://www.danceportal.co.uk/diary/2002/may/

has this in the panel:

Home / Diary / 2002 / May /   -- These are links back down the system of
directories.

http://www.danceportal.co.uk/charts/randumian/mon-22-apr-2002.php

has this:

Home / Charts / Randum Ian / Monday, April 22, 2002

Is it possible to automate this in a template so that it can work out where
it is and create the correct links?

If you need an example of how it is now please visit my website
http://www.danceportal.co.uk/home/.

Regards, Ian.
---
Randum Ian
DJ / Reviewer / Webmaster, DancePortal (UK) Limited
[EMAIL PROTECTED]
http://www.danceportal.co.uk
DancePortal.co.uk - Global dance music media


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Directory System Splitter

2002-04-27 Thread Jason Wong

On Saturday 27 April 2002 20:34, Randum Ian wrote:

[snip]

 For example:

 http://www.danceportal.co.uk/diary/2002/may/

 has this in the panel:

 Home / Diary / 2002 / May /   -- These are links back down the system of
 directories.

 http://www.danceportal.co.uk/charts/randumian/mon-22-apr-2002.php

 has this:

 Home / Charts / Randum Ian / Monday, April 22, 2002

 Is it possible to automate this in a template so that it can work out where
 it is and create the correct links?

Yes.

http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html


Presumably you want to know *how* to do it?

Use phpinfo() to see what predefined vars you can use to get your document 
path. Then probably use explode() to get the individual components of the 
path.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Are we not men?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Directory System Splitter

2002-04-27 Thread Paul Roberts

search zend.com for breadcrumbs

- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 27, 2002 2:01 PM
Subject: Re: [PHP] Directory System Splitter


 On Saturday 27 April 2002 20:34, Randum Ian wrote:
 
 [snip]
 
  For example:
 
  http://www.danceportal.co.uk/diary/2002/may/
 
  has this in the panel:
 
  Home / Diary / 2002 / May /   -- These are links back down the system of
  directories.
 
  http://www.danceportal.co.uk/charts/randumian/mon-22-apr-2002.php
 
  has this:
 
  Home / Charts / Randum Ian / Monday, April 22, 2002
 
  Is it possible to automate this in a template so that it can work out where
  it is and create the correct links?
 
 Yes.
 
 
http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html
 
 
 Presumably you want to know *how* to do it?
 
 Use phpinfo() to see what predefined vars you can use to get your document 
 path. Then probably use explode() to get the individual components of the 
 path.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 Are we not men?
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php