Is this better coding practice or might there be another solution that I'm not aware of?

Personally, I much prefer that solution, as you can then use the same link anywhere without having to worry about relative paths.

kreut
—
2012-04-12T13:51:04Z —
#3

Thanks so much for the quick reply!

-Eric

kreut
—
2012-04-12T18:25:57Z —
#4

Ralph,

I've now given the whole $SERVER["DOCUMENTROOT"] some thought and now think that there may be one small issue. Let's say I develop the site for www.thebestsiteever.com. However, it turns out that it needs to be all moved to a subdirectory (this is actually a possibility for the project), so that all of my files now reside in www.thebestsiteever.com/thebestfolderever/. If this does happen, wouldn't I have to change all of my $SERVER["DOCUMENTROOT"] to reflect this with the additional layer? And, if this is the case, might there be a more "flexible" solution?

Thanks again...

ParkinT
—
2012-04-12T18:40:14Z —
#5

kreut said:

If this does happen, wouldn't I have to change all of my $SERVER["DOCUMENTROOT"] to reflect this with the additional layer? And, if this is the case, might there be a more "flexible" solution?