[pmwiki-users] shared storage via http? and upload via http

Patrick Ogay lists at basel-inside.ch
Fri Oct 27 05:46:34 CDT 2006


Thanks a lot for the solution!

It' didn't work yet, cause of auth issues,
but I think I get it running.

regards
Patrick






Stefan Schimanski wrote:

>So, here you are:
>
>--------
>class RemotePageStore extends PageStore {
>  function RemotePageStore( $dir ) {
>    $this->PageStore( $dir );
>  }
>
>  function exists($pagename) {
>    if (!$pagename) return false;
>    $pagefile = $this->pagefile($pagename);
>    if( $pagefile ) {
>      $f = fopen($pagefile, "r");
>      if( $f ) {
>        fclose( $f );
>        return true;
>      }
>    }
>    return false;
>  }
>}                                                                                                                                                                                                    
>$WikiLibDirs[] = new RemotePageStore('http://test.1stein.org/remote-wiki.d/{$FullName}');
>---------
>
>And that's how it looks like: http://test.1stein.org/Remote/Test
>And the proof:
>
>    192.168.0.3 - - [26/Oct/2006:16:42:15 +0200] "GET /remote-wiki.d/Remote.Test HTTP/1.0" 200 540 "-" "-"  
>
>Schimmi
>
>  
>





More information about the pmwiki-users mailing list