Results 1 to 1 of 1
This is how my script looks: (Pseudo)
Code:
[Main File]
include ('1');
function_defined_in_1
[/Main File]
[File 1]
include ('2');
function_defined_in_2
[File 1]
[File 2]
Do Something
[File 2]
But he ...
- 11-30-2007 #1
Nesting Funtions PHP
This is how my script looks: (Pseudo)
But he doesnt work. I keep getting: "Code:[Main File] include ('1'); function_defined_in_1 [/Main File] [File 1] include ('2'); function_defined_in_2 [File 1] [File 2] Do Something [File 2]
Fatal error: Call to undefined function init_Encypt() in FILE1 on line 58"
So I thought I might do something wrong with File names.
in file 1 I do:
$td = init_Encrypt($key);
in file 2 I do:
function init_Encrypt($key)
{
//Dostuff
return $td;
}
Whats wrong?


Reply With Quote