I'm having some strange problems with function include after migrating code to another server. I am using PHP 4.2.3, RedHat 7.2, Apache 1.3.2.7. Below are two examples of the problems I am having. They are two completely separate issues.
Problem 1 Example:
include("file1.php"); // contains function A ()
include("file2.php"); // contains a call to function A () BUT Fails
// error message is:
// " call to undefined function: function A () "
Problem 2 Example:
$test_var = "hello";
include("file3.php"); // attempts to echo $test_var but fails
// $test_var in file1.php does not retain the value "hello"
--
Can someone please help me? I've done this millions of times, but for some reason after migrating the code to this new server, these problems arise. I'm frustrated out of my mind.
Thanks so much.