title: page configured incorrectly?
body: <p>I moved my files from my <code>Xampp</code> server over to a live server and now the <code>PHP</code> doesn't seem to be working correctly. This file is the problem</p>
  
  <pre><code>&lt;?php
  
  require ("../Android/connect.php");
  require ("../Android/queries.php");
  
  if ($query_run = mysql_query($questions_query)) {
      if (mysql_num_rows($query_run) == NULL) {       
          $response["success"] = 0;         
          echo json_encode($response);
  
      } else {            
          $response ['questions'] = array();      
          while ($row = mysql_fetch_assoc($query_run)) {
              $info = array();
              $info ['display_name'] = $row['display_name'];
              $info ['field_type'] = $row['field_type'];
              $info ['option_value'] = $row['option_value'];          
  
              array_push($response["questions"], $info);          
          }
          // success
          $response["success"] = 1; 
          // echoing JSON response
          echo json_encode($response);
      }
  }
  ?&gt;
  </code></pre>
  
  <p>My <code>Android</code> app that was getting <code>JSON</code> from this file now gets null <code>JSONObjects</code>. When I open it in my browser it gives me this error:</p>
  
  <p>"<strong>Server error</strong><br>
  The website encountered an error while retrieving <a href="http://mysite.com/Android/myfile.php" rel="nofollow">http://mysite.com/Android/myfile.php</a>. It may be down for maintenance or configured incorrectly."</p>
  
  <p>My first thought was my <code>connect.php</code> or <code>queries.php</code> that are included were at fault. However they work fine. I can get them to display in my browser or echo out messages to me. The file above however will not work. Anyone know what the problem is? </p>