Umbus Posted November 28, 2007 at 01:26 PM Report Share #150896 Posted November 28, 2007 at 01:26 PM Boas eu queria que uma funçao de um ficheiro (ex: 1.php - funcaoolas($ola, $ola2)) funciona-se noutro ficheiro php (Ex 2.php) Como pososfazer isso? Eu sou eu e eu sou aquele que sou eu... Link to comment Share on other sites More sharing options...
NCS_One Posted November 28, 2007 at 01:44 PM Report Share #150900 Posted November 28, 2007 at 01:44 PM Ois Poes as funçoes k queres usar dentro de outro file ex : Functions.php e depois onde queres usar as funçoes basta pores : <?php include "Functions.php"; ?> Nao sou perito nenhum em php mas axo k so a funçao nao da pa ir buscar. Ex : se tiveres no 1.php uma funçao e html se fizeres include "1.php" no 2.php neste tb vai aparecer o html k tava no 1.php. Espero ter ajudado. Se a vida te voltar as costas aproveita e apalpa-lhe o cu. Link to comment Share on other sites More sharing options...
Battousai Posted November 28, 2007 at 02:37 PM Report Share #150919 Posted November 28, 2007 at 02:37 PM Basta include, não percebi bem o que o utilizador em cima quis dizer, mas não é preciso ter html na página das funções para se ir lá buscar as funções. Link to comment Share on other sites More sharing options...
NCS_One Posted November 28, 2007 at 02:55 PM Report Share #150925 Posted November 28, 2007 at 02:55 PM Ois Nao disse k era preciso html, disse k se o file onde ta a funçao tiver html onde vais fazer o include tb vai aparecer o html k tava nesse file. Se a vida te voltar as costas aproveita e apalpa-lhe o cu. Link to comment Share on other sites More sharing options...
Battousai Posted November 28, 2007 at 03:25 PM Report Share #150945 Posted November 28, 2007 at 03:25 PM ah pronto, sim exacto 😞 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