Re: Directory System Splitter
| From: | Jason Wong | Date: | Sat, 27 Apr 2002 13:01:03 +0000 |
| Subject: | Re: Directory System Splitter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94890@lists.php.net to get a copy of this message | ||
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?
*/