Re: generic problem...

gabor <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Mon, 2004-03-01 at 15:40, will guaraldi wrote:
> Oh--if they're just blocks of html, you could adjust things so that your
> PHP static files included head.html and foot.html.  You probably have to
> switch the kind of PHP include you're doing from virtual to file.  I
> haven't used PHP in a while, but I'm pretty sure you can include arbitrary
> files on the server that way.
> 
> Would that solve your problem?

it would, but then ..welll.. we arrived to my actual problem.

i did what you said, i had my non-blog pages php-include head/foot.html.

the problem is the following:

1. i like to use relative urls
2. my head/foot.html are in $HOME/public_html/blog
3. now imagine a file, let's call it about_me.html living in
$HOME/public_html,
which includes $HOME/public_html/blog/head.z10n.
4. in that file, there is a link to about_me.html. but in that file,
it's <a href="../about_me.html"> because it's in the directory about it.
5. but when it gets included from about_me.html, then the link will
point to the directory above $HOME/public_html.

that's the problem :)

it can be solved with usinga absolute links, but i'd prefer not to use
them.

gabor



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.