PHP file not being run
<p>I have a PHP file that I'm trying to run. However, my web browsers act like it doesn't exist.
For example, 
Firefox tries to open the PHP file
Chrome says This webpage is not available. Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
Internet Explorer says  Internet Explorer cannot display the webpage </p>

<p>I'm trying to access this php file through a form submission ie action="login.php"
I've also tried accessing this file by localhost/login.php and I get the same results.</p>

<p>I know php is configured properly because all my other php files run fine just this one is giving me problems. For example, localhost/home.php works</p>

<p>btw, I do not have this problem when I tried to load the php file (it works properly) on another computer I have so I know the php file compiles properly.</p>

<p>Anyone have any ideas? I tried deleting all my caches (Firefox, IE, Chrome, Twig) but nothing works.</p>

<p>Thanks</p>

<p>edit: here are the php files i'm talking about
login.php
    

<pre><code>    function generate_salt($username) 
    {  
        // Create a SHA1 hash  
        $salt = sha1('~'.$username.'~'.microtime(TRUE).'~');  

        // Limit to random 10 characters in the hash  
        $salt = substr($salt, rand(0,30), 10);  

        return $salt;  
    }

    function hash_password($password, $salt) 
    {  
        return sha1('~'.$password.'~'.$salt.'~');  
    }  

    function valid_password($password, $hash, $salt) 
    {  
        return hash_password($password, $salt) == $hash;  
    }
    $loginStatus = false;

    //echo $_POST['username'] . " ";
    //echo $_POST['password'] . "\n";

    $username = $_POST['username'];
    $password = $_POST['password'];


    $db = new dbHelper(); 


    $user = $db-&gt;getUser($username);


    if(!$user)
    {
        $loginStatus = false;
    }
    else
    {
        $loginStatus = valid_password($password, $user-&gt;getPassword(), $user-&gt;getSalt());
    }

    if($loginStatus)
    {
        $db-&gt;createSession($user);
    }

    if($loginStatus)
    {
        echo "Login Successful";
        echo '&lt;META HTTP-EQUIV="Refresh" Content="0;URL=index.php"/&gt;';
    }
    else
    {
        echo "Incorrect Username or Password";
        echo '&lt;META HTTP-EQUIV="Refresh" Content="0;URL=index.php#ui-tabs-3"/&gt;';
    }
    //echo json_encode($loginStatus);
?&gt;
</code></pre>

<p>home.php</p>

<pre><code>&lt;?php
    //require_once './library.php';
    require_once './twigLoader.php';
    require_once './loginStatus.php';

    $template = $twig-&gt;loadTemplate('home.html');

    $nameArr = array("hi", "bye");

    echo $template-&gt;render(array('loginStatus' =&gt; $loginStatus,
                                'nameArr' =&gt; $nameArr));
?&gt;
</code></pre>
