1 (edited by pixeline 2005-12-23 12:00)

Topic: include extern.php does not work

hello,

punBB is an excellent forum, thanks a lot to the dev team !

I'm trying to display the latest posts on the frontpage. it does not work, it states that the file is missing, yet, if i copy/paste the url and access the file  'extern.php' directly, i get the content expected.

I searched throughout the forum but nothing i've found helped so far.

Can you?

here is the link to my (under construction) website: http://www.paternel.be/

PS: i tried the following

include ("http://www.paternel.be/forum/extern.php?action=active");
include $_SERVER['DOCUMENT_ROOT'].'/forum/extern.php?action=active';
require $_SERVER['DOCUMENT_ROOT'].'/forum/extern.php?action=active';

<!--#include virtual="forum/extern.php?action=new&show=10&fid=1" -->

but nothing worked.

2

Re: include extern.php does not work

wot i did, was put a file in include/user/here.php and inside it i put

<?php
include('http://punbb.us/extern.php?action=active');
?>

then in main.tpl i put

<pun_include "here.php">

and it puts it up perfectly
i know its a long way but thats how i got it to  work tongue

Re: include extern.php does not work

thank you,  i tried your idea but it does not work here. Besides, i want to display it on the website's homepage, not in the forum index page itself...

4 (edited by Ree 2005-12-28 01:03)

Re: include extern.php does not work

You can only do PHP including inside PHP start and end tags:

<?php
include('http://www.paternel.be/forum/extern.php?action=active');
?>

Re: include extern.php does not work

You must use the full address when including extern.php including http://