Forum Moderators: coopster
Warning: Failed opening 'includes/mainmenu.php3' for inclusion (include_path='.:/usr/local/lib/php') in /mnt/home2/k/ku/kumar/public_html/test/earthtemplate_div.php3 on line 45
anyone whi can help me with including files....
<!--line 45:--><?php include "includes/mainmenu.php3";?>
</div>
the included file:
<div id="button">
<ul>
<li><a href="#">Photos</a></li>
<li><a href="#">Stuff</a></li>
<li><a href="#">Web Dev.</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Culinaries</a></li>
<li><a href="#">Wolfheart</a></li>
</ul>
</div>
Files for including are first looked in include_path relative to the current working directory and then in include_path relative to the directory of current script. Your include_path is
.:/usr/local/lib/phpYour current working directory is
/mnt/home2/k/ku/kumar/public_html/test/You included
includes/mainmenu.php3Therefore, your script is going to try and find
mainmenu.php3in these directories in the following order...
Is it going to find it?
/mnt/home2/k/ku/kumar/public_html/test/includes/
/usr/local/lib/php/includes/
not be going on about the same questions again and again, but i have a little problem (again..)
i am trying include files from hte above mentioned include folder, lets say its in root(or folder named test in my case) the file where mainmneu.php3 is to be included to is in root/cds/, so i include like this..
<?php include "../includes/mainmenu.php3";?>
but its not working, same error as above....
am i doing anything wrong here...and does anyone know where i can get a good lecture in include (iv etried the php.net site)
thanks guys
kumar