Jump to content


Photo

include


  • Please log in to reply
1 reply to this topic

#1 sinful

sinful
  • Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 March 2006 - 06:40 PM

Hello,
Im trying to include my forums on a page at this url [a href=\"http://team-ata.com/forums.php\" target=\"_blank\"]http://team-ata.com/forums.php[/a] and my forums are at this url or you would call it folder [a href=\"http://team-ata.com/forum/\" target=\"_blank\"]http://team-ata.com/forum/[/a]

Im using this code to try and include the forums on my other page:

<?
include("forum/index.php");
?>

And it will not work it cant find all the other files that are in the forum folder..
Any help on what i have todo or what i should do would be great.

Thanks Donnie

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 16 March 2006 - 06:52 PM

You cannot include an entire set of forums in another page. It's impossible. If you want a specific URL to go to your forums, just use the header() call on the forums.php page to redirect the user to the main page of the forums.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users