xymalf99 Posted January 2, 2013 Share Posted January 2, 2013 Larry I have put the code for chapter 12 on my site. http://www.xymalf.co.uk/LU The requested URL /LUwww.xymalf.co.uk/LU/loggedin.php was not found on this server. I have registered a user ok but can't logon.. <?php # Script 12.2 - login_functions.inc.php // This page defines two functions used by the login/logout process. /* This function determines an absolute URL and redirects the user there. * The function takes one argument: the page to be redirected to. * The argument defaults to index.php. */ function redirect_user ($page = 'index22.php') { // Start defining the URL... // URL is http:// plus the host name plus the current directory: $url = 'http://www.xymalf.co.uk/LU' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); this looks ok to me but is causing the double string in the URL. THE files is in the includes directory. Link to comment Share on other sites More sharing options...
Larry Posted January 4, 2013 Share Posted January 4, 2013 First of all, you really need to read the forum guidelines. Second, your URL is clearly quite wrong. Link to comment Share on other sites More sharing options...
xymalf99 Posted January 8, 2013 Author Share Posted January 8, 2013 How do I correct the URL issue - I am trying to keep php project separate by putting them in different directories on my server. Link to comment Share on other sites More sharing options...
Recommended Posts