I'm having the following issue when including a file that includes another file:
// path: /ajax/request.php
require_once("../classes/obj/Car.php");
// path: /classes/obj/Car.php;
require_once("Vehicle.php"); // superclass, this works
require_once("../exception/NoWheelException"); // this doesn't work when Car.php is require_once()'d from /ajax/request.php
the problem seems to be that if a file A requires a file B that requires files C and D, it only works if C and D are used without "../", or "./" previous to the file name, when using require_once().
Is there any workaround or any ideas to fix this?