Topic: Problem: error, the posts pf my forum doesn't appear outside of my for

I need help. Hello and thank you in advice.

I have a PunBB forum in this URL: http://www.eldiariodelpueblo.com/foros/

and I'm trying to show the posts of the Noticias forum ( http://www.eldiariodelpueblo.com/foros/ … m.php?id=2 ) in my website (outside the forum). This is the URL of the website: http://www.eldiariodelpueblo.com/GAMEFAN.php


but this is the error that appears:

Warning: main(): URL file-access is disabled in the server configuration in /home/.landis/eldiario/eldiariodelpueblo.com/GAMEFAN.php on line 37

Warning: main(http://www.eldiariodelpueblo.com/foros/ … &fid=2): failed to open stream: no suitable wrapper could be found in /home/.landis/eldiario/eldiariodelpueblo.com/GAMEFAN.php on line 37

Warning: main(): Failed opening 'http://www.eldiariodelpueblo.com/foros/ … &fid=2' for inclusion (include_path='.:/usr/local/lib/php') in /home/.landis/eldiario/eldiariodelpueblo.com/GAMEFAN.php on line 37


Can anyone help me? I don`t know how to fix that.. Maybe opening that "URL file-access"? How can I do that?

Oh, and this is the code that I put on the website:
  <?
                        include('http://www.eldiariodelpueblo.com/foros/extern.php?action=new&show=15&fid=2');
                     ?>

Is that OK?

Thank you a lot in advice.

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Well, I'm guessing allow_url_fopen is disabled on your server
If you can't get it enabled, just include foros/extern.php?action=new&show=15&fid=2 instead of the full URL smile

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Thanks!! (I can't believe how fast you replied to me, thank you very much)

Now I have this error:

Warning: main(foros/extern.php?action=new&show=15&fid=2): failed to open stream: No such file or directory in /home/.landis/eldiario/eldiariodelpueblo.com/GAMEFAN.php on line 37

Warning: main(): Failed opening 'foros/extern.php?action=new&show=15&fid=2' for inclusion (include_path='.:/usr/local/lib/php') in /home/.landis/eldiario/eldiariodelpueblo.com/GAMEFAN.php on line 37


anyone knows how can I fix that?

Thanks in advice.

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Try the full path

/home/.landis/eldiario/eldiariodelpueblo.com/foros/extern.php?action=new&show=15&fid=2

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Hello, the error still appears...

And the strange thing is that if I write this URL http://eldiariodelpueblo.com/foros/exte … &fid=2 in my browser I can see all the titles of my posts.


Anyone can Help me?

Thank you for your help, Smartys . I think we are near of finishing the problem.

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Rickard suggested this for a similar situation:

What does this script output:

<?php exit(ini_get('allow_url_fopen')); ?>

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Smartys wrote:

Rickard suggested this for a similar situation:

What does this script output:

<?php exit(ini_get('allow_url_fopen')); ?>

Where should I write that? I tried at the top of the page but it doesn't seems to work.

Thank you.

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

In its own script wink

Re: Problem: error, the posts pf my forum doesn't appear outside of my for

Can you help me here?
http://punbb.org/forums/viewtopic.php?id=7595