Re: [PHP] absolute vs relative path?

2006-01-28 Thread Jason Petersen
On 1/25/06, William Stokes <[EMAIL PROTECTED]> wrote: > > > 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. > The cleanest solution is to use relative paths so that your site will work regardless

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Richard Correia
I would suggest to keep a simple variable $HOSTNAME in your config file. Thanks Richard On 1/25/06, William Stokes <[EMAIL PROTECTED]> 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 mod

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
On 25 Jan 2006 at 15:22, Barry wrote: > Geoff wrote: > > On 25 Jan 2006 at 15:19, William Stokes 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. > >> > >>F

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Barry
Geoff wrote: On 25 Jan 2006 at 15:19, William Stokes 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

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
On 25 Jan 2006 at 15:19, William Stokes 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 >

RE: [PHP] absolute vs relative path?

2006-01-25 Thread Jim Moseby
> 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:

[PHP] absolute vs relative path?

2006-01-25 Thread William Stokes
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/te