title: Calling text from a different php file
body: <p>I'm looking to find a way to make a <code>config.php</code> file to setup the website easier. See below;</p>
  <p><strong>config.php</strong> -</p>
  <pre><code>#Community Name
  $commname = &quot;Community A&quot;,
  
  #Community Phone Number
  $commphone = &quot;0123456789&quot;,
  </code></pre>
  <p><strong>index.php</strong> -</p>
  <pre><code>&lt;h1&gt;Community Name: &lt;?php echo($commname) ?&gt;&lt;/h1&gt;
  &lt;h2&gt;Phone Number: &lt;?php echo($commphone) ?&gt;&lt;/h2&gt;
  </code></pre>
  <p><strong>contact.php</strong> (same setup, just a different page) -</p>
  <pre><code>&lt;h1&gt;Community Name: &lt;?php echo($commname) ?&gt;&lt;/h1&gt;
  &lt;h2&gt;Phone Number: &lt;?php echo($commphone) ?&gt;&lt;/h2&gt;
  </code></pre>
  <p>I'm fairly new to PHP so I'm not sure if <code>echo</code> is the best way to do it or not.</p>
  <p>Thanks!</p>