On Mon, Apr 22, 2002 at 08:33:59PM +0200, Engard Ferenc wrote: > Hi there, > > There was this topic on the list as I can remember, just cannot > find it... > > I have an external application (namely a forum) which I want to > embed into a midgard page; that is, put out the midgard style, > and include the forum in the middle.
Well. the best solution would be porting this application to midgard (I hope it isn't very hard). But on other side you could make it independent files in your website directory tree, and fetch style elements from midgard by fopen(). It requires that style elements are available by url. Not so hard too. > > Unfortunately, there is 2 problems with this: first, there are > cookies and other header stuff which the app wants to send. I can > handle these, as it is not so much modification, anyway, I can > use ob_start() etc. functions also. After porting it into midgard-application, you could use code-compat, code-init and so on for this. :) > > The second problem is bigger: I had the idea to create an active > page, and use fopen() to execute the needed external pages (I can > configure the app to create it's URLs appropriate for this, at > least I hope ;-). The problem with this is that I cannot pass the > POST-ed form variables, which uses the app extensively. Now I am > completely lost, fearing of I cannot use this approach... Hmm... I'm not sure but eval() should accept these variables as any other global variables too. But it is insecure a little. :) So you could fopen() external page from disk, read its content into some variable and eval() it. -- Regards, Sergei Dolmatov. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
