RE: absolute vs relative path?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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
> 

Well, for hyperlinks to local pages, you can leave off the domain part all
together.  So in the above example you would just use "/www/test.php".  Any
hyperlinks to remote servers would be the same in test as they are in
production.

JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux