Topic: New problem with extern.php on homepage

Suddenly my included "recent posts" feature has dissapeared from my site. Not only that the error it is causing has taken out the rest of the pictures and text in that column of my page. The tag I'm using is;

<?include "http://terrainland.com/forum/extern.php … amp;show=7";?>

Before someone says, yes my forum is set up for guest viewing. Anyone have  any clue?

Thanks.

2 (edited by Tubby 2006-12-27 06:09)

Re: New problem with extern.php on homepage

have you moved to a new directory at all? im pretty sure that a feature can't just stop working for no apparent reason. It either has something to do with a change that you have made or a change that your host has made.

Re: New problem with extern.php on homepage

What error is it causing? That's kind of important tongue

Re: New problem with extern.php on homepage

I would say, make sure you write correct PHP code:

<?php include "http://terrainland.com/forum/extern.php?action=active&show=7"; ?>

Re: New problem with extern.php on homepage

I think if short tags work on the server his syntax is fine
My guess is that the host stopped allowing URLs in includes smile

Re: New problem with extern.php on homepage

Then I see a cURL solution, if that is installed smile

Re: New problem with extern.php on homepage

Thats the thing, it isn't giving me any error, its just making the stuff below it in its column dissapear and the newest posts arn't showing up.

I fixed it to elbekko's code, not sure how I lost my space, and it still doesn't work.

What is cURL?

Thanks,

Re: New problem with extern.php on homepage

<?php
$cp = curl_init("http://terrainland.com/forum/extern.php?action=active&show=7");
curl_exec($cp);
?>

Try putting that where your current include is.

Re: New problem with extern.php on homepage

BINGO!

Man I'm stumped! I still don't understand what actually happened. It appears to be perfect now though.

Thanks a bunch!