- Code: Select all
$res .= '<p>Return to web site <a href="http://www.mysite.com">www.mysite.com</a></p>';
return $res;
}
That works OK.
My question is how can I make this generic so it gets the website name automatically?
I tried using $_SERVER['SERVER_NAME'] but without success.
Can anyone show me how to do it?