title: Cannot open php file, the source file seems empty
body: <p>When I try to open the file <code>register.php</code> from the localhost(localhost/PrimaAppAndroid/register.php), the page remains white, and if I try to see the source file it is empty. If I leave the php part from <code>register.php</code>, it works fine even if I don't change the extension php in html.</p>
  
  <p>I have seen a <a href="https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-i-can-see-it-on-source-code-of-page">similar question</a> and I added <code>AddType application/x-httpd-php .php</code> at the end of my <code>apache2.conf</code> file but nothing changed. How can  fix this?</p>
  
  <p>Here the sources:
  register.php</p>
  
  <pre><code>&lt;?php 
  /*
  Our "config.inc.php" file connects to database every time we include or require
  it within a php script.  Since we want this script to add a new user to our db,
  we will be talking with our database, and therefore,
  let's require the connection to happen:
  */
      require("config.inc.php");
  ?&gt;
  
  &lt;h1&gt;Register&lt;/h1&gt; 
  &lt;form action="register.php" method="post"&gt; 
      Username:&lt;br /&gt; 
      &lt;input type="text" name="username" value="" /&gt; 
      &lt;br /&gt;&lt;br /&gt; 
      Password:&lt;br /&gt; 
      &lt;input type="password" name="password" value="" /&gt; 
      &lt;br /&gt;&lt;br /&gt; 
      &lt;input type="submit" value="Register New User" /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>config.inc.php:</p>
  
  <pre><code>&lt;?php 
  
      // These variables define the connection information for your MySQL database 
      $username = "root"
      $password = "root"
      $host = "localhost"
      $dbname = "cinemapreverificasql"
  
      // Tis is the way we saw in class
      $conn = mysql_connect($host, $username, $password) or die("Errore nella connessione MySQL");
      mysql_select_db($dbname, $conn) or ide("Database inesistente");
  ?&gt;
  </code></pre>