Well, Oddly it does have something to do with the URL reference. Originally I was fully qualifying URLs to get around the "file not found in the include statement of php.ini" problem -- I would fully qualify the path of the file, and everything would work fine. When I tried the following in main3.php:
include "allfunctions.php";
as opposed to:
include "http://www2/allfunctions.php";
everything worked fine, and I got the output:
Here I am!Display successful
So, take that for what you will. It seems that I can't win no matter what I do -- If I don't fully qualify the path of the php file to be included, I run the risk of my users getting the "Not in INCLUDE path" error. If I do qualify the path, I run the risk of my file not being included and everything blows up. And, if I add the path of my html directory to my php.ini file, every time I add a new html directory (for another site) I have to remember the added step of putting the html line in the include path.
Am I missing something? I like PHP, but it seems that with the later versions it's becoming increasingly difficult to follow the logic of the creators.
Thanks for all your help everyone!
-Paul