|
Posted by Ringo on 07/18/05 19:05
"Ken LE PRADO" <ken@leprado.com> wrote in message
news:42db4d72$0$25045$8fcfb975@news.wanadoo.fr...
> In all my websites, I have a config file with the base url path (ex :
> $baseDir='http://toto.com/site' ) and a function makeUrl();
>
> When I need to make an absolute link, I use my function
> makeUrl('/dir1/file1.php') and it output
http://toto.com/site/dir1/file1.php
> This is used for example in the menus, or headers that are called in
> every pages, but not in the pages that just include some files.
>
> Why don't use just a link to '/dir1/file1.php' ? Just because it is the
> dir for the root path, and you don't have allways access to a root path.
>
> Ken
ken,
Can you please explain this trick more clearly? I'm having problems with
relative and root paths, and I'm hoping that something similar might help me
to overcome this problem.
Thanks,
Ringo
Navigation:
[Reply to this message]
|