peterpah Posted June 28, 2012 at 07:40 PM Report Share #466284 Posted June 28, 2012 at 07:40 PM Boas eu tenho uma função para ir buscar o URL e ela ta a ir buscar o URL original e eu não queria ,queria que ela fosse buscar aquele que manipulei. ou seja ela devia ir buscar http://rironfire.com/vervideo-Its%20my%20life-17 e não este http://rironfire.com/videover.php?video=17 função <?php $protocolo = (strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === false) ? 'http' : 'https'; $host = $_SERVER['HTTP_HOST']; $script = $_SERVER['SCRIPT_NAME']; $parametros = $_SERVER['QUERY_STRING']; $UrlAtual = $protocolo . '://' . $host . $script . '?' . $parametros; echo $UrlAtual; ?> Alguém me ajuda? Link to comment Share on other sites More sharing options...
yoda Posted June 29, 2012 at 01:40 AM Report Share #466326 Posted June 29, 2012 at 01:40 AM (edited) Se não me engano : $ruri = $_SERVER['REQUEST_URI']; Podes usar este snippet também, da minha autoria : http://www.portugal-a-programar.pt/topic/50321-routes/ Edited June 29, 2012 at 01:42 AM by yoda before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now