Hi
I have written a two fucntions.
function one ($value) {
global $value;
echo $value;
}
function two () {
global $value;
one(1);
$new_value = $value + 2;
echo $new_value;
}
they both work well.
i put these functions in a class and created an instance of the class in another page so that i can access these functions.
When i try to call function two in this way i get an eror message that says;
Fatal error: Call to undefined function one()
any ideas why this is. the problem only seems to occur when i try to use these functions using OOP techniques.
this is the code showing how i called the functions
require_once "func_test.class";
$test = new func_test();
$test -> two();
Thanks