title: settings file for bash and php
body: <p>I have a project that involves php and bash scripting.</p>
  
  <p>I want to outsource all user-settings to a file "settings.conf". This file should therefore contain bash-variables aswell as php-variables.</p>
  
  <p>However, bash would find php code quite irritating, aswell as php couldn't cope with bash code.</p>
  
  <p>What would be a best practise to make sure my php script would only take care of the php part of the file and bash would only mind about the bash part?</p>
  
  <p>The settings file might look like this</p>
  
  <pre><code>### Settings-File
  
  ## php-settings
  &lt;$php
      $language    = "en";
      $url         = "http://foo.bar";
      $copyright   = "Copyleft License";
  ?&gt;
  ## end php-settings
  
  ## bash-settings
      pathToCertainFile="/home/johndo/files/certainFile"
  ## end bash-settings
  
  ## EOF
  </code></pre>