tiko165 Posted May 18, 2013 at 11:28 PM Report #507950 Posted May 18, 2013 at 11:28 PM Existe algum $_SERVER[''] para com o seguinte link - www.ENDERECO.com/pasta/index.php obter simplesmente só? - www.ENDERECO.com/pasta/ Por este site testei quase tudo, mas há por vezes certas coisas que falham http://php.net/manual/pt_BR/reserved.variables.server.php Toda a ajuda é bem vinda 😄
yoda Posted May 19, 2013 at 12:11 AM Report #507954 Posted May 19, 2013 at 12:11 AM echo 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); before you post, what have you tried? - http://filipematias.info sense, purpose, direction
tiko165 Posted May 19, 2013 at 02:15 PM Author Report #507978 Posted May 19, 2013 at 02:15 PM echo 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); Exactamente, é isto mesmo! 😄 Se por ventura, colocar os ficheiros na pasta raiz (www.ENDERECO.com/index.php), e colocar na mesma esse código, irá ler só (www.ENDERECO.com) ??? *** Estou a falar sem testar 😉
yoda Posted May 19, 2013 at 05:16 PM Report #507987 Posted May 19, 2013 at 05:16 PM Sim before you post, what have you tried? - http://filipematias.info sense, purpose, direction
tiko165 Posted May 19, 2013 at 08:08 PM Author Report #508000 Posted May 19, 2013 at 08:08 PM Sim Ok! Obrigado pela ajuda 😄
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