[solved] Re: not-off-topic - php advice? Redirecting users that have links to old cacti installation on another host
Lukasz Sokol <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
On 09/02/2012 16:30, Matej Vadnjal wrote: > > Look at $_SERVER["REQUEST_URI"]: > http://php.net/manual/en/reserved.variables.server.php > > So something like: $loc = "http://<host2>" . > $_SERVER["REQUEST_URI"]; print "<a href=\"$loc\">$loc</a>"; > > > Kind regards Matej Vadnjal > Yes! In the mean time I asked my PHP guru ;) and figured it out exactly that way :) (used also $_SERVER['HTTP_HOST'] and strtr function to change /part/ of the name only ;) (Just put it to operation this morning works like a dream ;) Thanks for your answer, L. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/