fil79 Posted October 2, 2009 at 12:42 PM Report Share #289626 Posted October 2, 2009 at 12:42 PM Boas Precisava de saber o nome da pasta onde se encontra um determinado ficheiro que é carregado..usei este método: //TIRA O NOME DA PASTA ONDE SE ENCONTRA O FICHEIRO// $dir = explode( "/",($_SERVER['PHP_SELF'])); $control=$dir[2]; a minha questão é se esta será a melhor forma de o fazer ou existe melhor..Desde já agradeço MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
softklin Posted October 2, 2009 at 01:06 PM Report Share #289629 Posted October 2, 2009 at 01:06 PM Vê a função dirname, acho que é isso que pretendes. Nick antigo: softclean | Tens um projeto? | Wiki P@P Ajuda a comunidade! Se encontrares algo de errado, usa a opção "Denunciar" por baixo de cada post. Link to comment Share on other sites More sharing options...
yoda Posted October 2, 2009 at 03:54 PM Report Share #289658 Posted October 2, 2009 at 03:54 PM $path = dirname(realpath(__FILE__)); 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