Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

 Share

×
×
  • Create New...