title: include and include_once in PHP
body: <p>Could someone please explain to me on when should one use the <code>include</code> and <code>include_once</code> and how should one be using it.</p>
  <p>I am new to PHP and would like to understand this is laymans terms. Not too clear with whats mentioned on PHP documentation at <a href="https://www.php.net" rel="nofollow noreferrer">php.net</a>.</p>
  <p>Let us say I have the following folder structure</p>
  <blockquote>
  <p>--&gt;Root--&gt;API--&gt;User.php</p>
  <p>--&gt;Root--&gt;Users--&gt;CreateUser.php</p>
  </blockquote>
  <p>If I have to use the <code>User.php</code> in <code>CreateUser.php</code> how should I be doing it.</p>
  <p>And if there is another file under</p>
  <blockquote>
  <p>--&gt;Root--&gt;API--&gt;Utility--&gt;ImageProcessor.php</p>
  </blockquote>
  <p>How should i being including <code>ImageProcessor.php</code> with <code>CreateUser.php</code></p>