Show HN: A Minimal PHP Wiki
First, I'm by no mean a programmer.
Second, I am reading HN for years, just registered to make this public and see if it can be useful for someone. I have nothing to gain monetary.
A while ago, I decided that no blogging system was simple enough and I looked for a small wiki to use as a CMS/blog. Found WikWiki on C2.com and I mixed it with some basic Markdown syntax, a minimal template and added password protection.
The result is a single php file, no database and no dependencies. Code is a mess, not modulable, probably wrong in so many ways, but it can probably used by some as personal notepad, wiki, CMS, blog, etc.
Any comments appreciated.
(
9 comments
| 8 points
| on HN
)
All the h3 titles below (where lines start with ###) can be linked to using this format: [displayed text](#title)
I am a PHP developer and love minimalistic, one file projects. I love wikis too.
My comments here is not intended to be negative, just some feedback, so you can improve the program (and maybe fix some things).
I tried to bring your wiki online at my localhost. Doesn't worked because you are using short open tags. Since many PHP installations have this Off by default, I think you should use the non-short open tag "<?php" instead just "<?".
I changed it but faced another issue. The Syntax <?php=$variable?> was giving me some render issues. I don't dive in to find why, but I changed it to <?php echo $variable; ?>
It worked! Well, so-so.
A page with a textarea rendered. I typed something and clicked on save, but the page reloaded and nothing happened. Tried filling the password too. When I click on "Wiki" link, nothing happens too.
If you need some more info to help you find why the app is having this behaviour, just tell me.
I did not really attempt to use it on any other PHP installations, so it might explain being broken easily. I use shorthands a lot, I might just change it to the default ones to avoid errors.
When you edited your first (empty) page, did you use password "admin" or you generated a new hashed password? It might have something to do with another PHP settings that doesn't allow you to create files unless you chmod the directory.
Any additional info is appreciated, I'm really looking to improve it for people to use WikiMind on their own.
Great project, thank you. I felt a little stupid when trying to create a new page, then remembered the way of the Wiki and appended ?new-page to the URL, of course. Maybe add this info in the description?
Hope it helps.
https://github.com/casualwriter/casual-markdown-blog
in same design idea: single html + markdown. no db, no dependence.