Forums » Ideas

Indexhibit on Windows

Josie_K
GERMANY
2008-11-11 13:14:42
Permalink Post
 

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

Vaska A
UNITED STATES
2008-11-11 13:24:14
Permalink Post
 

Will be in the next version as well...much thanks to Jo!

oub
FRANCE
2009-01-12 16:05:19
Permalink Post
 

hello,

I follow there instruction, but I have always the same probleme in local (i use windows with wamp too), this is displayed page (it doesn't change when i change the line)this is the message when i go to the /ndxz-studio/install.php :

thanks for helping me

oub
FRANCE
2009-01-12 16:07:41
Permalink Post
 

this the link with the message taht didnt display before :

problem install indexhibit in local with wamp

Vaska A
UNITED STATES
2009-01-12 16:36:36
Permalink Post
 

Does what I wrote up there not make sense? Have you tried searching this forum?

Because...we do not support Indexhibit on Windows. If you can make it work great...otherwise...

Did you see another post about this from about an hour ago?

Showing 1 - 5 of 5 posts in Forum > Ideas > Indexhibit on Windows
 

This thread has been closed, thank you.