Including file in php
<p>I am a jsp programmer who has taken up a little homework to learn php on my own ;)
So my question is on including files in php document.
To Explain here is the code.</p>

<p><strong>index.php</strong></p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Home&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php include("/php/lib/banner.php"); ?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>banner.php</strong></p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Banner&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width="100%"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;img src="../../images/banner.jpg" width="100%" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>file locations :</strong></p>

<pre><code>main\index.php  
main\php\lib\banner.php  
main\images\banner.jpg  
</code></pre>

<p>The error I get is that no image is displayed in Index page, but it works when I directly access banner.php</p>

<p>Please suggest.</p>

<p>Regards
Sworoop Mahapatra</p>
