Example #1
0
 public function stream_open($path, $mode, $options, &$opened_path)
 {
     if (strstr($mode, "r") !== false) {
         self::$crtTmpFile = self::getRealFSReference($path);
         self::$crtWritePath = null;
     } else {
         self::$crtTmpFile = AJXP_Utils::getAjxpTmpDir() . "/" . rand();
         self::$crtWritePath = $path;
     }
     self::$crtHandle = fopen(self::$crtTmpFile, $mode);
     return true;
 }