phpBB login form integration (locate to parent dir problem?)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thomas49th
Forum Newbie
Posts: 11
Joined: Wed Aug 04, 2010 4:29 pm

phpBB login form integration (locate to parent dir problem?)

Post by thomas49th »

Hi my site folder structure

public_html

sub directories:
-phpBB
-subdomain1

the index.php in subdomain1 contains

<form method="post" action="../phpbb/ucp.php?mode=login">
<label for="username">Username: </label> <input type="text" name="username" id="username" size="40" /><br

/><br />
<label for="password">Password: </label><input type="password" name="password" id="password" size="40"

/><br /><br />
<label for="autologin">Remember Me?: </label><input type="checkbox" name="autologin" id="autologin" /><br

/><br />
<input type="submit" value="Log In" name="login" />
<input type="hidden" name="redirect" value="../index.html" />
</form>


but when I run my script I get

Not Found

The requested URL /phpbb/ucp.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Why cannot it not see the bloody file?

Thanks
Thomas
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: phpBB login form integration (locate to parent dir probl

Post by Jonah Bron »

It says phpbb/ucp.php is missing. Can you confirm that's it's there?
thomas49th
Forum Newbie
Posts: 11
Joined: Wed Aug 04, 2010 4:29 pm

Re: phpBB login form integration (locate to parent dir probl

Post by thomas49th »

yes I can. If I use an absolute reference eg http://mywebsite.com/phpbb/upc.php

that'll work fine :\
Post Reply