i have an issue with the include function. i want to use the include function on a file that is in another directory. can anyone offer any assistance on how i go about doing this??

Please do google you will get better solution with full description about include function.

Search : " Include function + php manual "

Say you want to write the include function in one.php which is in maindir/test/one.php . Suppose you want to include a file called two.php in maindir/someothertest/two.php . Then your one.php will be something like this..

<?php 
include "../someothertest/two.php";
.
.
.

?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.