Lippy
11-14-2002, 03:08 PM
in designing a site, I was wondering how you people prefer to do it,is there a better way between the 2?
1: http://www.domainname.com/thelink"
2: /thelink
which would you use and why.
Rich2k
11-14-2002, 03:10 PM
I wouldn't bother putting the full domain name in. It makes your files bigger and there is simply no need.
It also makes it much easier to test locally.
debug
11-14-2002, 08:28 PM
For my personal site, i prefer a trick like http://Hello-How-are you- today@IP (base 16 coding) or http://news@IP. :)
Lippy
11-14-2002, 09:37 PM
debug I don't quite understand what your saying, could you explain it in a bit more detail.
debug
11-15-2002, 01:36 AM
Originally posted by Lippy
debug I don't quite understand what your saying, could you explain it in a bit more detail.
Sorry, you are talking about designing a web site. I am talking about to convert the IP in base 16:
By example:
12.34.45.678 = 12 x 16777216 + 34 x 65536 + etc
jtrovato
11-15-2002, 01:30 PM
that's a funny IP address 12.34.45.678 hehe too bad you couldn't have larger numbers like this.
I would rather use the \link.
I ran into some problems when the domain name changed once and I had to go through the code and change all the links.
Try not to use the http:\\domain.com\happydays\goodtimes\friends.php
jtrovato
11-15-2002, 01:31 PM
sorry /link hehe me bad, windows guy...
dTuesday
11-16-2002, 04:00 AM
"/thelink" is your best bet. You are dealing with a portability issue here. If you ever want to move the site or a portion of it to a different domain or directory you don't want to waste time tediously hunting and pecking through your script changing all the full domain references.....
....I suppose you could do a find and replace however. But why would you want to deal with that anyway.
Using a relative path is the way to go.
;)
- D
Acronym BOY
11-16-2002, 04:16 AM
I agree with dTuesday, a relative link is the better of the two choices. Absoultes really become a pain later on.