title: php post-processing publish
body: <p>I was wondering if is it possible to change an already written variable in the html generated file. Maybe there is an option to 'publish/write' the html file in the very end of php processing.</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;?php
  echo '&lt;h1&gt;' . $pageTitle . '&lt;/h1&gt;';
  ?&gt;
  
  [...]
  
  &lt;?php
  [DB queries]
  
  $pageTitle = "New Page title";
  echo "&lt;javascript-code-to-change-the-page-title&gt;";
  ?&gt;
  </code></pre>
  
  <p>Yes I could set $pageTitle before, but it may change along the code according to some query.
  So, I figure out that I can change the page title on client side only.
  I'm probably missing some logic here.</p>