How to create a anchor link to different .php file?
<p>I'm new to php and hope you can make me figure out whether I'm trying to do anything impossible.</p>

<p>I have two folders 'public' (root directory), and 'library' (all php files here), these folders are in same level of folder hierachy. my public/index.php is basically loading  another php file (say aa.php) which is in 'library' folder on the loadup. Now I need to create a anchor link to file call bb.php which is also inside library folder.</p>

<p>I tried create anchor as follows</p>

<pre><code>echo "&lt;a href="bb.php"&gt; my bb file &lt;/a&gt;
</code></pre>

<p>But I'm getting 404 error saying localhost/bb.php can not be accessed. I guess this is because bb.php file is not with in root directory and server is preventing direct access to this file.</p>

<p>Please help me to overcome this problem.</p>

<p>Thank you</p>
