Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- php include in template page


htdawg - 1:19 pm on May 23, 2008 (gmt 0)


the file is <?php include("includes/footer.php"); ?>

and I am calling it from a folder e.g www.mysite.com/includes/footer.php

and I want the contents of footer.php to show up on my page which is in

www.mysite.com/dir/index.php

the thing is that the /dir/index.php page calls the layout of the page from the template.php page which I placed the include file in so that it would show up on the /dir/index.php page if i add the include directly to the /dir/index.php page it works.

any ideas?


Thread source:: http://www.webmasterworld.com/php/3657203.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com