Creating a library of classes in php - how to handle the library root location?
- by jax
I am about to create a collection of classes in php which are interrelated. Now I would like to include files using their absolute path, ie
If I were in
'/com/mysite/licences/Generator.class.php'
I would like to include files like this:
include '/com/mysite/lib/Utils.class.php'
I don't want to include like this, I think it is confusing and…