I'm not sure I understand well. But I want to ask if you used
Code:
include "functions.php"
in your main_file.php?
and if your "functions.php" has
Code:
function fn1()
{
return $fn_ret_1;
}
function fn2()
{
return $fn_ret_2;
}
if so there shouldn't be any problems.
With regards to session variables... did you put a session_start(); in the main_file.php?
if so just use;
Code:
$_SESSION['session_variable_name']=value1;
if not you might want to try:
Code:
$register_me_pls = "I should be registered as a session variable";
session_register("register_me_pls");
to use the registered vars.
Code:
print $_SESSION['register_me_pls'];
Is this what you need?