title: Blank page when website is hosted online
body: <p>I have build a small website with some php. It works perfectly on my localhost (even without database information it loads the html and css).</p>
  
  <p>However when I put it online I just get a blankpage, no errors, nothing. However when I manually type a page it redirects to the login page (which is good).</p>
  
  <p>Anyone experienced this before?</p>
  
  <p>Thanks
  EDIT2: After some debugging advice I got this error</p>
  
  <blockquote>
    <p>Warning: include_once(classes/users.class.php): failed to open stream:
    No such file or directory in
    /customers/c/2/9/nicolasdecroos.be/httpd.www/eindwerk/login.php on
    line 8 Warning: include_once(): Failed opening
    'classes/users.class.php' for inclusion
    (include_path='.:/usr/share/php') in
    /customers/c/2/9/nicolasdecroos.be/httpd.www/eindwerk/login.php on
    line 8 Fatal error: Class 'user' not found in
    /customers/c/2/9/nicolasdecroos.be/httpd.www/eindwerk/login.php on
    line 9</p>
  </blockquote>
  
  <p>Edit: Here is the PHP code on the login page</p>
  
  <pre><code>&lt;?php
  session_start();
      include_once("classes/users.class.php");
      $user = new user();
  
      if(isset($_SESSION['loggedin']))
      {
          header('location: index.php');
      }
      else
      {
          if(!empty($_POST))
          {
              try
              {
                  $user-&gt;login($_POST['studentennummer'],$_POST['password']);
              }
              catch (Exception $error)
              {
                  $message = $error-&gt;getMessage();
              }
          }
      }
  ?&gt;
  </code></pre>
  
  <p>This is users.class</p>
  
  <p>*Sorry if it's to much code, I'm not sure which part would be the most interesting.</p>
  
  <pre><code>&lt;?php
      include_once("classes/db.class.php");
  
      class user
      {
           private $m_sStudentennummer;
           private $m_sPassword;
           private $m_sStatus;
  
  
  
           public function __get($p_sProperty)
           {
              switch ($p_sProperty) 
              {
                  case 'Studentennummer':
                      return $this-&gt;m_sStudentennummer;
                      break;
  
                  case 'Password':
                      return $this-&gt;m_sPassword;
                      break;
  
                  case 'Status':
                      return $this-&gt;m_sStatus;
                      break;
  
              }
           }
  
           public function __set($p_sProperty, $p_vValue)
           {
              switch ($p_sProperty) 
              {
                  case 'Studentennummer':
                      $this-&gt;m_sStudentennummer = $p_vValue;
                      break;
  
                  case 'Password':
                      $this-&gt;m_sPassword = $p_vValue;
                      break;
  
                  case 'Status':
                      $this-&gt;m_sStatus = $p_vValue;
                      break;
  
              }
           }
  
           public function userCheck($p_sInput)
           {
              $db = new db();
  
              $sql = "SELECT * FROM users WHERE u_id = '". $p_sInput . "'";
  
              $result = $db-&gt;conn-&gt;query($sql);
  
              if ($result-&gt;num_rows == 0) 
              {
                  return "true";
              }
              else
              {
                  return "false";
              }
           }
  
           public function login($p_sStudentennummer, $p_sPassword)
           {
              $db = new db();
  
              $sql = "SELECT * FROM users WHERE u_nr = '".$db-&gt;conn-&gt;real_escape_string($p_sStudentennummer)."' AND u_pass = '".$db-&gt;conn-&gt;real_escape_string($p_sPassword)."';";
  
              $result = $db-&gt;conn-&gt;query($sql);
  
              $rows = $result-&gt;fetch_assoc();
  
               $status = "SELECT * FROM users WHERE u_nr = '".$db-&gt;conn-&gt;real_escape_string($p_sStudentennummer)."' AND u_pass = '".$db-&gt;conn-&gt;real_escape_string($p_sPassword)."' AND u_group = 'student'";
  
               $statusRes = $db-&gt;conn-&gt;query($status);
  
              if ($result-&gt;num_rows == 1)
              {
                  if ($statusRes-&gt;num_rows == 1)
                  {
                  $_SESSION['u_id'] = $rows['u_id'];
                  $_SESSION['loggedin'] = 1;
                  header('Location: index.php');
                  }
                  else
                  {        
                  $_SESSION['u_id'] = $rows['u_id'];
                  $_SESSION['loggedin'] = 1;
                  header('Location: my_events.php');
                  }
              }
              else
              {
                  throw new Exception("Username and/or password are invalid.");
              }
           }
      }
  ?&gt;
  </code></pre>