title: iframe uses different home directory
body: <p>directory structure:</p>
  
  <pre><code>htdocs
       index.php
       cms.php
       images/
            image.jpg
            otherpic.png
       content/
            home.php
            otherfile.php
  </code></pre>
  
  <p>/content/home.php contains LOADS of images. It will be included in index.php, so take note that the src only has one dot, because its read from inside index.php:</p>
  
  <pre><code>&lt;img src="./images/image.jpg"&gt;&lt;/img&gt;
  </code></pre>
  
  <p>Now cms.php holds an iframe. The iframe is supposed to be the rich text editor so that home.php can be editted.</p>
  
  <p>Which brings me the following problem: When I want to load home.php inside the iframe the image sources needs to have two dots,</p>
  
  <pre><code>&lt;img src="../images/image.jpg"&gt;&lt;/img&gt;
  </code></pre>
  
  <p>because <code>home.php</code> is inside <code>/content/</code> so the iframe will see <code>/content/</code> as is its parent directory, Not <code>/htdocs/</code>.</p>
  
  <p>How do I make the images show inside the iframe/text editor AND index.php? </p>