Jump to content
Larry Ullman's Book Forums

xymalf99

Members
  • Posts

    4
  • Joined

  • Last visited

xymalf99's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. How do I correct the URL issue - I am trying to keep php project separate by putting them in different directories on my server.
  2. MY index page is not displaying the Login form? I have put session_start(); in the php code. tried creating a seperate LOGIN TAB URL /LU/www.xymalf.co.ukwww.xymalf.co.uk/LU/loggedin.php was not found on this server. I get above error code. I have all the php code in my LU directory and the includes directory is in there.
  3. Also i have the sql connect program in the root not secure - how do i change code? The requested URL /LU/www.xymalf.co.uk/LU/loggedin.php was not found on this server. How do i get the log on program to work getting a wrong url when i try.
  4. 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.
×
×
  • Create New...