Hey guys,
I had a little free time on my hands and was looking into Indexhibit as a solution for my (yet to come) website.
I currently don't have webspace and my laptop is running WAMP, which is obviously on Win XP.
Unfortunately, as everyone here knows Windows based servers are not supported by Indexhibit yet, so I did a little investigation on how to fix that. I learned PHP and found out, that it is actually a very easy solution to the problem.
In the file defaults.php you can find this line:
define('DIRNAME', str_replace(BASENAME, '', $adjust));
When checking the variables of install.php I noticed that on Windows this actually results in DIRNAME being set to
(whatever_your_path_is)\indexhibit\ndxz-sutudio
The problem here is that whole point of the string replace command is to remove the ndxz-studio part and thus giving Indexhibit the root path. This is due to the fact that on Windows a path is separated by a backslash instead of a forward slash on a linux machine.
Because the string replace uses BASENAME as a replacement string, which starts with a forward slash, it can't be found in the string generated for the variable $adjust and is thereby left untouched. Needless to say that this will mess up all further references Indexhibit needs to work properly.
My quick solution to this would be replacing the line with:
define('DIRNAME', str_replace('ndzx-studio', '', $adjust));
This will leave an extra slash at the end of the path that wasn't there originally but for me that didn't cause a problem. I have tested this on Windows and on my girlfriend Macbook so far and it worked perfectly for me.
Vaska already knows about this and I'm sure for the next version of Indexhibit he'll provide a more elegant solution to take care of the problem, but until then it's a great workaround for us Windows heads to test this wonderful piece of software on our local machines.
I'm really interested if this is also working for you or if you know an even better way of making it work.
Peace,
Jo
