Re: Full versus relative URLs

From: Date: Tue, 17 Feb 2009 17:10:27 +0000
Subject: Re: Full versus relative URLs
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-288451@lists.php.net to get a copy of this message
Lewis Wright wrote: > But that's where mistakes are often made. It also means you need to > maintain a different live version to that of your development version. > If find it much easier to have relative paths and then there's no > build process needed to go live, I can just upload it. > > 2009/2/17 Michael A. Peters <mpeters@mac.com>: >> Virgilio Quilario wrote: >> >>> The difference is in manageability. >>> Copying the scripts to another domain and you're using full url for >>> your src and href when referring to local images or css or pages, will >>> give you trouble and you must change all of them to your new domain. >> which takes about 3 seconds to do with sed. >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > for that matter, you could use variables to specify the relative path to make it absolute within each of the production and dev environments. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#288451) next »