Hi Lads
im writhing a login system for a personal project.
the login part work nice but there are some includement stuff i cannot get figured out.
when a user logs in the session will start and he will be redirected to his CP.
now. the link to the cp is default.php?id=user
and in that site i want to :
include ($_SERVER['DOCUMENT_ROOT'] . '/pages/user/userinfo.php?user=' . $user );
and i get the error:
Warning: include(/home8c/sub012/sc72820-GSDQ/ocbot.org/pages/user/userinfo.php?user=admin) [function.include]: failed to open stream: No such file or directory in /mounted-storage/home8c/sub012/sc72820-GSDQ/ocbot.org/pages/user/user.php on line 9
Warning: include() [function.include]: Failed opening '/home8c/sub012/sc72820-GSDQ/ocbot.org/pages/user/userinfo.php?user=admin' for inclusion (include_path='.:/usr/share/php5/') in /mounted-storage/home8c/sub012/sc72820-GSDQ/ocbot.org/pages/user/user.php on line 9
but if i go to /pages/user/userinfo.php?user=admin then it opens fine and tells me the info in the page.
i think that whenever i include my page there it includes it BUT it does not send the user part and it expects that there is a physical file called .php?user=admin
is there a way of fixing it?
best regards
hmeco