Results 1 to 6 of 6

Thread: Wamp refuses to open my page

  1. #1
    Join Date
    Jan 2010
    Posts
    59

    Wamp refuses to open my page

    I do not know where to post this problem. I install Windows 7 yesterday and I made a backup of my project: I have given in the "www" in "wamp" I redid my good BDD, everything works except one thing, impossible to open certain pages, then what it finds with inscriptions and indexes that opens:

    Index Page: http://localhost/Toulouse/Athletic/Club/
    registration page: http://localhost/Toulouse/Athletic/subscription.php

    And a page that refuses to open from both sides:
    Member homepage: http://localhost/Toulouse/Athletic/Club/member.php

    Could someone tell me why Wamp refuses to open?

  2. #2
    Join Date
    Nov 2008
    Posts
    996

    Re: Wamp refuses to open my page

    "refuses to open" is a bit short as an explanation. What is the exact error message? Can you tell us the error logs of Apache?

  3. #3
    Join Date
    Jan 2010
    Posts
    59

    Re: Wamp refuses to open my page

    When I asked him to open member, my browser sends me:
    Connection Reset

    The connection with the server was reset while the page loads.

    * The site could be temporarily unavailable or overloaded. Try again
    later;

    * If you are unable to load any pages, check the connection
    network your computer;

    * If your computer or network is protected by a firewall or proxy,
    make sure that Firefox has permission to access the Web.
    when it opens registration;

    both located in the same folder,
    and before I reinstalled everything perfectly.

    I am using WampServer 2.0i.

  4. #4
    Join Date
    Nov 2008
    Posts
    996

    Re: Wamp refuses to open my page

    And the Apache logs say anything?

    This may come from the code. You can try to identify the problem by commenting all your code in PHP member.php and by uncommenting until the problem is identified or lines of code that are problematic.

  5. #5
    Join Date
    Jan 2010
    Posts
    59

    Re: Wamp refuses to open my page

    Here is my PHP code, I see no error :

    PHP Code:
    <?php
    if (isset($_POST['inscription']) && $_POST['inscription'] == 'Inscription') {
        if ((isset(
    $_POST['login']) && !empty($_POST['login'])) && (isset($_POST['pass']) && !empty($_POST['pass'])) && (isset($_POST['pass_confirm']) && !empty($_POST['pass_confirm']))) {
            if (
    $_POST['pass'] != $_POST['pass_confirm']) {
                
    $error 'The 2 passwords are different.';
            }
            else {
                        
    $base mysql_connect("localhost""root""");
    mysql_select_db("espacemember");


                
    $sql 'SELECT id FROM member WHERE login="'.mysql_escape_string($_POST['login']).'"';
                
    $req mysql_query($sql) or die('SQL Error!<br />'.$sql.'<br />'.mysql_error());
                
    $nb mysql_num_rows($req);

                if (
    $nb == 0) {
                    
    $sql 'INSERT INTO member VALUES("", "'.mysql_escape_string($_POST['login']).'", "'.md5(mysql_escape_string($_POST['pass'])).'")';
                    
    mysql_query($sql) or die('SQL Error!'.$sql.'<br />'.mysql_error());
                    
    $id mysql_insert_id();

                    
    session_start();
                    
    $_SESSION['login'] = $_POST['login'];

                    
    $_SESSION['id'] = $id;
                    
    header('Location: member.php');
                    exit();
                }
                else {
                    
    $error 'A member already has this login.';
                }
            }
        }
        else {
            
    $error 'At least one field is empty.';
        }
    }
    ?>

      <h4>Toulouse Athletic Club Tennis Table</h4><br />
    <form action="inscription.php" method="post">
    Login : <input type="text" name="login" value="<?php if (isset($_POST['login'])) echo stripslashes(htmlentities(trim($_POST['login']))); ?>"><br />
    Password : <input type="password" name="pass" value="<?php if (isset($_POST['pass'])) echo stripslashes(htmlentities(trim($_POST['pass']))); ?>"><br />
    Confirmation of password : <input type="password" name="pass_confirm" value="<?php if (isset($_POST['pass_confirm'])) echo stripslashes(htmlentities(trim($_POST['pass_confirm']))); ?>"><br />
    <input type="submit" name="inscription" value="Inscription">
    </form>
    <?php
    if (isset($error)) echo '<br />',$error;
    ?></p>
    So when we finished the registration must be sent directly member.php

    its just might be there:
    PHP Code:
    $_SESSION['id'] = $id;
                    
    header('Location: member.php');
                    exit(); 

  6. #6
    Join Date
    Nov 2008
    Posts
    996

    Re: Wamp refuses to open my page

    Yes, these are the tracks that I ask but they show no error in the excerpt that you put there was access to member.php? Make access to member.php and look in the error_log file for errors.

    Comment in PHP mean add // before each line of PHP code. Uncomment, it means removing the //.

Similar Threads

  1. Replies: 10
    Last Post: 07-04-2012, 11:57 AM
  2. Replies: 3
    Last Post: 06-04-2011, 05:16 AM
  3. Replies: 2
    Last Post: 16-06-2010, 04:39 AM
  4. Page refuses to load in Windows 7
    By Amaresh in forum Technology & Internet
    Replies: 4
    Last Post: 23-02-2009, 09:10 AM
  5. Wamp 2.0 refuses to start
    By JiJi in forum Software Development
    Replies: 3
    Last Post: 26-11-2008, 07:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,448,978.09882 seconds with 17 queries