Typ Deines phpBB Forums: andere phpBB Distribution
MODs: Nein
Dein Wissensstand: Einsteiger
Link zu Deinem Forum: http://dungeon-bbs.fidosoft.de/forum/
PHP Version: 4.3.10
MySQL Version: 3.23.50
Was hast Du gemacht, bevor das Problem aufgetreten ist?
Was hast Du bereits versucht um das Problem zu lösen?
Den Autor um Rat gefragt.
Fehlerbeschreibung und Nachricht
Moin!
Ich habe mich mal wieder getraut und den Wikipedia Mod http://www.k405l02d.de/downloads/phpbb_wikipedia.rar in mein Forum eingebaut. Leider gib es damit nur folgende Fehlermeldung:
Den Path "/usr/local/lib/php" gibt es bei mir überhaupt nicht.PHP Warning: main(http://de.wikipedia.org/wiki/?title=): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
in E:\BBS\WEB\html\forum\wikipedia.php on line 46
PHP Warning: main(): Failed opening 'http://de.wikipedia.org/wiki/?title=' for inclusion (include_path='.;/usr/local/lib/php') in E:\BBS\WEB\html\forum\wikipedia.php on line 46
Rufe ich den betroffenen Link direkt auf, funktioniert er.
Der betroffene Quelltext sieht so aus:
Code: Alles auswählen
<?php
/***************************************************************************
* wikipedia.php
* -------------------
* copyright : (C) 2005 ChaosLord
* email : goccl@web.de
*
****************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// Start Session Management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$page_title = 'Wikipedia German Version';
$title = $_GET['title'];
function callback( $buffer )
{
$buffer = substr( $buffer, strpos( $buffer, '<!-- start content -->' ) );
$buffer = substr( $buffer, 0, strpos( $buffer, '<div class="printfooter">' ) );
$buffer = str_replace( "/wiki/", "wikipedia.php?title=", $buffer );
$buffer = preg_replace( '/\(<i>http(.*)wiki.phtml(.*)<\/i>\)/', "", $buffer );
$buffer = "<center><img src=\"images/Wikipedia_german.gif\" border=\"0\"></center>" .$buffer. "<br /><center><span class=\"copyright\">Fetched by Wikipedia.org ® 2005 Wikipedia.org</span></center>";
return $buffer;
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
ob_start("callback");
include 'http://de.wikipedia.org/wiki/?title=' . $title;
ob_end_flush();
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>Darum mal die Frage an die Profis hier: Was läuft da falsch bzw. habe ich falsch gemacht. Zumindest letzteres dürfte eigentlich nicht sein, denn 2 Dateien zu kopieren und dann per Browser aufzurufen schaffe sogar ich. :rolleyes:
Bye/2