jd2007 Posted September 23, 2007 Share Posted September 23, 2007 What function to use to get the current url ? Quote Link to comment Share on other sites More sharing options...
Lumio Posted September 23, 2007 Share Posted September 23, 2007 Not a function, but a Global-Variable like $_SERVER Quote Link to comment Share on other sites More sharing options...
mezise Posted September 23, 2007 Share Posted September 23, 2007 Hi, yes, as Lumio said. You need to combine the url from a few entries in $_SERVER global array: $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI']. And check $_SERVER['HTTPS'] to apply "https://" if "on" otherwise "http://". Michal Quote Link to comment Share on other sites More sharing options...
jd2007 Posted September 29, 2007 Author Share Posted September 29, 2007 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.