Minimalist Wiki as a script

I'm trying to find a simple wiki like a script to set up a personal directory, my favorite browsers just don't work anymore, and I have many small files on the disk.

Desired Features

  • File upload
  • not bloated
  • runs on a shared web host (aka php)

Thanks in advance

+4
source share
6 answers

I recommend Dokuwiki . Uses text files instead of a database.

+11
source

Google sites function like a Wiki and you don’t need to publish your site. You can upload files, but there is a 100 MB limit for the site. The big advantage here (IMO) is that you don’t have to worry about setting up your hosting at all.

It has a WYSIWYG editor, so minus if you really use some specific Wiki syntax, I think.

Another option (without hosting) will be TiddlyWiki , which is fully implemented in Javascript and is intended for use on a USB device primarily.

+13
source

Several people have recommended Tiddlywiki . I used it for simple wiki setup ... It's good, fast and easy.

You mentioned the need for web access ... Tiddlywiki combined with TiddlyHome is what I use for a simple, single-line html-page wiki that can be used both offline and online ...

Another possibility is to use one of the new save options listed at https://tiddlywiki.com/#Saving , including Node.js or a PHP server, or integration with Google Drive / Dropbox / WebDAV (Sharepoint).

+4
source

I think this can help you find one that suits you: http://www.wikimatrix.org/

I also found this nice script: Hatta

+2
source

Checkout LionWiki - http://lionwiki.0o.cz

It works from only one file, and it is dead simply.

+2
source

Here is one:

<?php function p($c){$r=preg_replace(array("~^ +([^\n]+)~m",'~^-\s+(.*)$~m', "~-{4,}\r?\n~",'~(http(?:s)?)://([^\s]+)~i','~\n~'),array('<code>$1</code>','<li>$1', '<hr>','<a href=$1://$2>$2</a>','<br>'),$c);preg_match_all('~([AZ]\w+){2,}~',$r, $x);foreach(array_unique($x[0])as$m){$r=str_replace($m,x($m)? "<a href=?$m>$m</a>": "$m<a href=?e=$m>?</a>",$r);}return$r;}function f($f){@mkdir('wik');return @file_get_contents("wik/$fw");}function b($b){echo"<h1><a href=?$b>Backlinks $b" ."</a></h1><div id=c>";foreach(glob('wik/*.w')as$f){$f=substr($f,4,-2);if(strpos( f($f),$b)!==false)echo"<a href=?$f>$f</a><br>";}echo"</div>";}function x($f){ return file_exists("wik/$fw");}function e($p){$p=$p?$p:$_GET['e'];echo"<h1>Edit" ." $p</h1><form action='?$p' method=post><textarea name=c cols=50 rows=10>".f($p) ."</textarea><br><input type=submit value=Save>";}$p=preg_replace('~(e|b)=(.*)~' ,'',$_SERVER[QUERY_STRING]);$c=$_POST[c];$e=$_GET[e];$b=$_GET[b];if(!$p&&!$e)$p= 'MainPage';if($c){@file_put_contents("wik/$pw",htmlspecialchars($c));header( "Location: ?$p");}echo"<title>Wik Wiki</title>";if(!$e){if(!$b){echo x($p)? "<h1><a href=?b=$p>$p</a></h1><div id=c>".p(f($p))."</div><hr><a href=?e=$p>" ."Edit</a> | <small>Modified: ".date('dmY @ H:i:s', @filemtime("wik/$pw")) :e($p);}else b($b);}else e($e); 

From http://c2.com/cgi/wiki?WikWiki . It does not have file uploads, but you can add it without bloating. I used it as a private notepad and it works well, you just need to make sure the web server has write permissions in the wik directory

0
source

Source: https://habr.com/ru/post/1307973/


All Articles