/**
  * Récupère le pathinfo
  * <code>
  *  //Si appelé via http://localhost/copix_3/test.php/stuff/stuff2/stuff3?test=simpletest|
  *  echo CopixUrl::getRequestedPathInfo ();
  *  //affiche "/stuff/stuff2/stuff3"
  * </code>
  * @return string
  */
 public static function getRequestedPathInfo()
 {
     if (self::$_pathinfo === false) {
         //following is index.php/mypath/myaction
         if (isset($_SERVER['ORIG_PATH_INFO']) || isset($_SERVER['PATH_INFO'])) {
             self::$_pathinfo = isset($_SERVER['ORIG_PATH_INFO']) ? $_SERVER['ORIG_PATH_INFO'] : $_SERVER['PATH_INFO'];
             $pos = strpos(self::$_pathinfo, self::getRequestedScriptPath() . self::getRequestedScriptName());
             if ($pos !== false) {
                 //under IIS, we may get as PATH_INFO /subdir/index.php/mypath/myaction (wich is incorrect)
                 self::$_pathinfo = substr(self::$_pathinfo, strlen(self::getRequestedScriptPath() . self::getRequestedScriptName()));
             }
         } else {
             self::$_pathinfo = substr($_SERVER["PHP_SELF"], strlen($_SERVER['SCRIPT_NAME']));
         }
     }
     return self::$_pathinfo;
 }