Topic: include('http://host.com/forums/extern.php?action=active');

Alright, i have a problem showing the ten latest active topics on my startpage...

This is the code im using:
<?PHP
include('http://art4gamers.net/forum/extern.php?action=active');
?>

I'm not best at coding PHP, i would be very glad if someone just put the code here...

/M@dJeDo

Re: include('http://host.com/forums/extern.php?action=active');

So, do you got any errors or something?

3 (edited by madjedo 2004-04-03 12:17)

Re: include('http://host.com/forums/extern.php?action=active');

Warning: Failed opening 'http://art4gamers.net/forum/extern.php?action=active' for inclusion (include_path='.:/usr/share/pear:/usr/share/php/PEAR') in /customers/art4gamers.net/art4gamers.net/httpd.www/testpage.php on line 215

Re: include('http://host.com/forums/extern.php?action=active');

I Would be VERY VERY glad if someone could just hand over me the code, my PunBB dir root is ../forum

Re: include('http://host.com/forums/extern.php?action=active');

What version of PHP are you using and on what OS is it running?

Edit: Also, do you get the topic list or does it fail completely? If you see the list and get that warning, you can try adding a @ in front of the include command.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

PHP4

My PunBB is 1.1.2

I'm no good, what is OS?

Re: include('http://host.com/forums/extern.php?action=active');

Yeah, but which PHP4 version? 4.1.2? 4.3.0?

OS is operating system. Are you running it on UNIX or Windows?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

8 (edited by madjedo 2004-04-03 14:51)

Re: include('http://host.com/forums/extern.php?action=active');

Silly me, look down

Re: include('http://host.com/forums/extern.php?action=active');

See the info in the admin interface (the first page). But please tell me if you get the list at all. See my post earlier about adding a @ in front of the include.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

Now my code is like this:

<?PHP
@include('http://art4gamers.net/forum/extern.php?action=active');
?>

Nothing shows up, look here under "forum status": http://www.art4gamers.net/testpage.php

Rickard wrote:

See the info in the admin interface (the first page). But please tell me if you get the list at all. See my post earlier about adding a @ in front of the include.

Where?

Re: include('http://host.com/forums/extern.php?action=active');

LoL, look at this: http://art4gamers.net/forum/extern.php?action=active

There you can see the posts actually...

Re: include('http://host.com/forums/extern.php?action=active');

I still need to know what version of PHP you are running. Please open up your admin interface and tell me what it says under "Environment".

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

OK, i really can't find out. I use an FTP and phpMyAdmin... blabla.

B-One.net is the hotell, but if i remember correct it is version 4.1.2

Re: include('http://host.com/forums/extern.php?action=active');

What do you mean, you can't find out? Aren't you an admin in your forums?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

Rickard jag älskar DEJ!

PunBB version    PunBB 1.1.2 - Check for upgrade

Developed by Rickard Andersson
© Copyright 2002, 2003, 2004 Rickard Andersson 
UNIX load averages     (1 users online)
Environment    Operating system: Linux
PHP: 4.2.2 - Show info
Accelerator: N/A 
Database    MySQL 3.23.58

Rows: 505
Size: 308.83 KB 

Sorry, var lite trögfattad...

Re: include('http://host.com/forums/extern.php?action=active');

Ok, then try this:

include('forum/extern.php?action=active');

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

U don't think i already tried that?

I get:

Warning: Failed opening 'forum/extern.php?action=active' for inclusion (include_path='.:/usr/share/pear:/usr/share/php/PEAR') in /customers/art4gamers.net/art4gamers.net/httpd.www/testpage.php on line 215

Re: include('http://host.com/forums/extern.php?action=active');

Ok, this then:

include('./forum/extern.php?action=active');

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

No, nevermind. That won't help.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

20 (edited by madjedo 2004-04-03 15:01)

Re: include('http://host.com/forums/extern.php?action=active');

I get:

Warning: Unable to access ./forum/extern.php?action=active in /customers/art4gamers.net/art4gamers.net/httpd.www/testpage.php on line 215

Warning: Failed opening './forum/extern.php?action=active' for inclusion (include_path='.:/usr/share/pear:/usr/share/php/PEAR') in /customers/art4gamers.net/art4gamers.net/httpd.www/testpage.php on line 215


..this seems to become a long one...

Re: include('http://host.com/forums/extern.php?action=active');

Well, I don't know how b-one have their servers setup. Create a textfile containing this:

<?php phpinfo(); ?>

and name it phpinfo.php and give me the URL.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

Varsågod

http://www.art4gamers.net/phpinfo.php

Re: include('http://host.com/forums/extern.php?action=active');

Hmm, there's something fishy. "allow_url_fopen" isn't set at all. I don't know if that means it's disabled or enabled. Let me think.

Also, please speak english in these forums :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: include('http://host.com/forums/extern.php?action=active');

hmmmz.... ?¿

Re: include('http://host.com/forums/extern.php?action=active');

Ok, just to make sure it works at all, try this:

require('http://punbb.org/forums/extern.php?action=active');

"Programming is like sex: one mistake and you have to support it for the rest of your life."