The ideal solution would be to use php_include_dir, so this would be "include 'openbabel.php';". I'll try to substitute /usr/local/lib with whatever was set in CMake.