Re: absolute vs relative path?

From: Date: Wed, 25 Jan 2006 17:44:19 +0000
Subject: Re: absolute vs relative path?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229254@lists.php.net to get a copy of this message
I would suggest to keep a simple variable $HOSTNAME in your config file. Thanks Richard On 1/25/06, William Stokes <kalles@operamail.com> wrote: > > Hello, > > I Have a web site on one server and a test site on another. How can I > build > the hyperlinks so that they work on both servers without modification. > > For example build this link dynamically: > "http://www.domain.com/www/test.php > > In test server the same should be: > "http://internalserver/www/test.php > > Thanks > -Will >

« previous php.general (#229254) next »