static function getReporticoUrlPath()
    {
        $sessionClass = ReporticoSession();

        //$found = ReporticoUtility::findFileToInclude($newpath, $newpath, $reltoinclude);
        $newpath = __DIR__;
        $newpath = ReporticoUtility::getRelativePath(str_replace("/", "\\", realpath($newpath)), dirname(realpath($_SERVER["SCRIPT_FILENAME"])));
        $above = dirname($_SERVER["SCRIPT_NAME"]);
        if ($above == "/") {
            $above = "";
        }

        $url_path = $above . "/" . $sessionClass::sessionRequestItem('reporticourl', dirname($newpath));

        // If reportico source files are installed in root directory or in some other
        // scenarios such as an invalid linkbaseurl parameter the dirname of the
        // the reportico files returns just a slash (backslash on windows) so
        // return a true path
        if ($url_path == "/" || $url_path == "\\") {
            $url_path = "/";
        } else {
            $url_path = $url_path . "/";
        }

        return $url_path;
    }
static function getReporticoUrlPath()
    {
        $sessionClass = ReporticoSession();

        //$found = ReporticoUtility::findFileToInclude($newpath, $newpath, $reltoinclude);
        $newpath = __DIR__;
        $newpath = ReporticoUtility::getRelativePath(str_replace("/", "\\", realpath($newpath)), dirname(realpath($_SERVER["SCRIPT_FILENAME"])));
        $above = dirname($_SERVER["SCRIPT_NAME"]);
        if ($above == "/") {
            $above = "";
        }

        $url_path = $above . "/" . $sessionClass::sessionRequestItem('reporticourl', dirname($newpath));

        // If reportico source files are installed in root directory or in some other
        // scenarios such as an invalid linkbaseurl parameter the dirname of the
        // the reportico files returns just a slash (backslash on windows) so
        // return a true path
        if ($url_path == "/" || $url_path == "\\") {
            $url_path = "/";
        } else {
            $url_path = $url_path . "/";
        }

        return $url_path;
    }
static function getReporticoUrlPath ( ) { $ sessionClass = ReporticoSession ( ) ; //$found = ReporticoUtility::findFileToInclude($newpath, $newpath, $reltoinclude); $ newpath = __DIR__ ; $ newpath = ReporticoUtility :: getRelativePath ( str_replace ( "/" , "\\" , realpath ( $ newpath ) ) , dirname ( realpath ( $ _SERVER [ "SCRIPT_FILENAME" ] ) ) ) ; $ above = dirname ( $ _SERVER [ "SCRIPT_NAME" ] ) ; if ( $ above == "/" ) { $ above = "" ; } $ url_path = $ above . "/" . $ sessionClass :: sessionRequestItem ( 'reporticourl' , dirname ( $ newpath ) ) ; // If reportico source files are installed in root directory or in some other // scenarios such as an invalid linkbaseurl parameter the dirname of the // the reportico files returns just a slash (backslash on windows) so // return a true path if ( $ url_path == "/" || $ url_path == "\\" ) { $ url_path = "/" ; } else { $ url_path = $ url_path . "/" ; } return $ url_path ; }
This can be used to then find reportico images, links, runners etc
This can be used to then find reportico images links runners etc