I have narrowed the problem down, so that if I give a full URL to the class' file, it DOES NOT let me use the class, whereas
if I give a relative path to the class' file it WILL let me use the file.
In my server structure (say in localhost/FOLDER1/
I have a file ClassA.php
and also index.php
if in index.php I do
include('ClassA.php'); $a = new A;
This works fine, however, if in index.php I do
include('http:/localhost/FOLDER1/ClassA.php'); $a = new A;I get a "class ClassA not found" error.
BUT I have put an echo statement in my class' file, and in both cases the file is actually being included
as the specific echo is occurring.
any ideas ?