require_once('./Services/Utilities/classes/class.ilUtil.php'); $ILIAS_root = ilUtil::getWebspaceDir(); echo $ILIAS_root; // Output: /var/www/ilias/
require_once('./Services/Utilities/classes/class.ilUtil.php'); $logo_image = ilUtil::getWebspaceDir().'/custom/images/logo.png'; echo $logo_image; // Output: /var/www/ilias/custom/images/logo.pngIn this example, the root directory is retrieved using the getWebspaceDir function and concatenated with the relative path to an image file. The resulting full path to the image file is stored in the `$logo_image` variable and then echoed to the screen. Package Library: The ilUtil function is part of the ILIAS e-Learning platform and is not a standalone library or package.