October 24th, 2000, 09:35 AM
Just a simply problem but I can't find the solution, so please help !!!
I wanna make a script that will use a function from another script.
example : I have 'two.php' that will use a function from 'one.php'
I try this in two.php
bla bla bla
but all of the coding in one.php is included in two.php
So, how if I just want one function from 'one.php' that is included in 'two.php' ??
Please help !!
Thanks in advance
See ya !!
** It's the world of Oscario **
October 24th, 2000, 09:58 AM
You can't. Include/Require will put the content of the file that is included into the main file.
The only way is to break up the functions into smaller files
PHP/MySQL Enabled Hosting/Dedicated Servers