- You're adding a relative path to the global include path. Is that what you intended?
- You are possibly not including the file where class
MyClass
is defined.set_include_path()
allows to omit the path in therequire_once
statement, not to omit the statement itself.
I have the impression that the tool you have in mind is class autoloader.