title: Page will not load unless I echo a string at the top of the page
body: <p>I have a <code>product.php</code> page that loads a masterpage and a <code>productFocus.php</code> page with additional content. However if I do not echo a string at the top of the <code>productFocus.php</code> page, the page will not load. The masterpage always loads as it should.</p>
  
  <p>Beginning the page with just <code>&lt;?php ?&gt;</code> does not help.</p>
  
  <p>How can I load the content of <code>productFocus.php</code> with the <code>master.php</code> in <code>product.php</code> without the need of echoing a string at the top of the <code>productFocus.php</code> page?</p>
  
  <p>I use JetBeans PhpStorm but XAMPP gives the same result...</p>
  
  <p><strong>product.php</strong></p>
  
  <pre><code>    &lt;?php
          include_once "db/db.php";
          if (isset($_GET["id"])) {
              $id = $_GET["id"];
              $product = get_product_by_id($id);
              $page_content = 'productFocus.php';
              include('master.php');
          } else {
              header("Location: http://localhost/site/index.php");
              exit();
          }
  </code></pre>
  
  <p><strong>productFocus.php</strong></p>
  
  <pre><code>&lt;?php echo "." ?&gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; If this is removed the page won't load in the product.php page
  
  &lt;style type="text/css"&gt;
      ...
  &lt;/style&gt;
  
  &lt;div class="product-focus"&gt;
      &lt;h3&gt;&lt;?php echo $product-&gt;name ?&gt;&lt;/h3&gt;
      &lt;img src="images/products/&lt;?php echo $product-&gt;image ?&gt;"&gt;
      &lt;div id="description"&gt;
          &lt;h4&gt;Productinformatie&lt;/h4&gt;
          &lt;p&gt;&lt;?php echo $product-&gt;description ?&gt;&lt;/p&gt;
          &lt;h4&gt;Partners&lt;/h4&gt;
          &lt;table&gt;
              &lt;?php
                  foreach($product-&gt;partners_obj as $partner) {
              ?&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;a href=&lt;?php echo $partner-&gt;product_url ?&gt; target="_blank"&gt;
                          &lt;img id="partner" src="images/partners/&lt;?php echo $partner-&gt;image ?&gt;"&gt;
                      &lt;/a&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;a href=&lt;?php echo $partner-&gt;product_url ?&gt; target="_blank"&gt;€ &lt;?php echo $partner-&gt;product_price ?&gt; &lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;?php
                  }
              ?&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>master.php</strong></p>
  
  <pre><code>&lt;html&gt;
  ...
  &lt;?php include($page_content);?&gt;
  ...
  &lt;/html&gt;
  </code></pre>