This is really annoying,
say i have a function and that function requries functions in another php file so i can include those other php files(and hence the functions) so this would work,
<?php
function dostuff(){
include 'func.php';
echo somefunction("dostuff");
}
?>
but if i put the include outside the function then the function can't access the other files functions!
like,
<?php
include 'func.php';
function dostuff(){
echo somefunction("dostuff");
}
?>
really anooying as i need to use the functions from func.php both inside and outside the function dostuff() so how do i declare include "func.php" as global and have it at the top of the all others?
say i have a function and that function requries functions in another php file so i can include those other php files(and hence the functions) so this would work,
<?php
function dostuff(){
include 'func.php';
echo somefunction("dostuff");
}
?>
but if i put the include outside the function then the function can't access the other files functions!
like,
<?php
include 'func.php';
function dostuff(){
echo somefunction("dostuff");
}
?>
really anooying as i need to use the functions from func.php both inside and outside the function dostuff() so how do i declare include "func.php" as global and have it at the top of the all others?