Topic: including the forum in another page

This is mostly a question about theory.  I recently installed PunBB.  My plans were to use a PHP file for URL redirection.  Basically, *every* URL goes to the file index.php, which parses the URL and includes the proper file.  Big emphasis on "include."

Simply put: I cannot include PunBB inside another PHP file.

I had a similar problem with phpBB, which led me to search for a simpler BB: you guys.  Same problem, though.  So, if it's not too much trouble, I was wondering, as far as technical theory goes, what am I not getting?  What is it that makes these apps impossible to nest inside a PHP include()?

--E.

Re: including the forum in another page

Moved to integration.

I'm not sure that I'd be able to help you out with this, but anyway - what do you mean by "cannot"? Do you get an error? Or just a blank page? Or something else?

Looking for a certain modification for your forum? Please take a look here before posting.

Re: including the forum in another page

Is it possible? Yes (as long as you don't echo out *any* data before the include).
Would it requiring changing a lot of PunBB's code? Yes (changing all the links would just be a start).
Will it create problems? Yes (one of which will be the referrer checks).
Is it a potential security hazard? Yes, without a doubt, if done the wrong way.

...

So, what would be the point of doing this? A lot of work, without any real gain.

Re: including the forum in another page

pogenwurst wrote:

I'm not sure that I'd be able to help you out with this, but anyway - what do you mean by "cannot"? Do you get an error? Or just a blank page? Or something else?

I get a blank page.  If I print() a test of whether the fileExists() right before making the include, I can see a "1."  But after that, nada.

CodeXP wrote:

...

So, what would be the point of doing this? A lot of work, without any real gain.

URL redirection.  More specifically, URL redirection from a database.  After some research, I had success using a method that involves siphoning everything through a single page.

I have yet to search the forums for info on the subject of URL redirection--which I'll do after posting this, of course.  While I do that: any thoughts?