Re: RE: Re: [SMARTY] hello again :)
| From: | Rasmus Schultz | Date: | Thu, 28 Nov 2002 16:31:26 +0000 |
| Subject: | Re: RE: Re: [SMARTY] hello again :) | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6595@lists.php.net to get a copy of this message | ||
>> I'm also not sure you should be doing that in the first
>> place? I generally to avoid using absolute paths, unless it's
>> absolutely necessary ... because if you ever decide you want
>> to move your pages to another folder, and they're full of
>> absolute paths, to pictures or whatever else, you're screwed...
>
>i think you've got a bit confused there. absolute paths allow you to
>move your pages to another folder and not break the links from there.
depends on how you work - I always keep my pages together with a
folder of images ... if I wanted to move entire site to an "old site"
folder, for example, that wouldn't work with absolute paths, I'd have
to change every image reference from
/pics/my.gif
to
/oldsite/pics/my.gif
whereas with relative paths, I could have moved the pics folder and
the documents anywhere I wanted...
I see what you mean though :)
>using relative and absolute paths both have merits and downsides - you
>shouldn't force one or the other on the user of your plugin.
a valid argument, but I still need to know how to do it - like,
what should I prepend to convert it to a physical path?