Bugs » index.php

added on Mar 3, 2007 by Tonius
Hi,

I´ve just installed the program and it works fine :-)

As I have made some enhacements to the homepage design, I would like to rename the index.php to another name in order to
call it from the new enhanced index page.

However if I rename the original index.php to something different, the anti-spam utility does not work anymore.

This is not a bug, of course, it´s just a minor inconvenience.

Anyway, any help would be much appreciated.

Thanks for your attention

added on Mar 17, 2007 by v0id
Hey Tonius.

Of course. You should be able to change the filename from index.php to anything you want. I'll make sure the scripts
uses the correct filename :)
Thanks for the input

added on Apr 20, 2007 by Gom
Hi,

I bump into an IIS(5.0) 405 failure that has also to do with this naming issue of index.php

The error: 405 (Method POST not allowed to directory.)

The problem:
LinkEX posts its forms straight to the directory

EX NOW: Form post goes here now
http://somesite.com/linkEX/?page=.......


On windows IIS 4/5 this will fail,
there needs to be a "filename.php"

Correct would be POST to:
http://somedomain.com/LinkEX/index.php?page=..........

Now if the situation with a filename other then index.php is resolved, then this script will also work correct for
windows IIS 4/5 servers.

Regards,
Gom.
added on Apr 24, 2007 by v0id
Awesome! This is good info, since I can fix it. I'll have a fix by tomorrow.
Thanks alot Gom!
added on Apr 26, 2007 by Gom
Hello again,

v0id i hope your reading this also, can be helpfull if its added to the install help.

I already solved the problem for microsoft IIS 4/5 servers with php installed giving a
"405 Method not allowed" error.

A complete walktrough to get LinkEX running on your IIS 4/5, MS-webmasters fire up your editors.

1. Needed (not going into this) php on your IIS 4/5, and your IIS should know the default document index.php

2. This linkEX script is made for unix, when you open it in an editor, KEEP IT ALL ON 1 LINE, that means no
wordwrapping, or unix textconversions, this will only give more errors! Open the index.php with a decent editor that
doesnt change a bit.

2. Scroll right, untill you find:
$_SERVER['REQUEST_URI'] = str_replace( 'index.php', '', $_SERVER['SCRIPT_NAME'] ) . rtrim( '?' . linkex::get(
'QUERY_STRING', $_SERVER, '' ), '?' );

3. Change this to:
$_SERVER['REQUEST_URI'] = str_replace( 'index.php', 'index.php', $_SERVER['SCRIPT_NAME'] ) . rtrim( '?' . linkex::get(
'QUERY_STRING', $_SERVER, '' ), '?' );

Note the 2nd 'index.php'.

4. Save the script. Create on your sever a folder for example: LinkEX
Upload the script in this folder.

and give its initial call ex: http://somedomain.com/linkex/

The script should NOT give you a "405" Method not allowed when submitting your linkex-admin data.
For me it works now perfect.

I can imagine this script will fail on IIS not being able to write in its own folder. Use your IIS Managment Console to
solve that problem or ask your hoster to make the folder writable for scripts.

Regards,
Gom

P.S. v0id, you know my real email, hit me up with your icq-nr, i have some more improvement ideas.
added on May 7, 2007 by v0id
Hi guys.

After talking to Gom, we have sorted out quite some bugs on IIS, and implemented the patches. So LinkEX should be
getting closer and closer to work 100% on windows servers :)

There are still some issues, but we're getting there.

- v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.