ich lerne gerade php. Und wollte jetzt mal eine eigen Seite ins Forum machen.
Ich als Vorlage das hier:
http://www.phpbb.de/doku/kb/72
Und unter Inhalt habe ich das stehen:
Code: Alles auswählen
echo "Hello World";
Code: Alles auswählen
<?php
//Benötigte Dateien und Variablen von phpBB
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//Session auslesen und Benutzer-Informationen laden
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//Dieser Block kann weggelassen werden, wenn du nur den die Userdaten brauchst und auf den phpBB-Header verzichen möchtest
$page_title = 'Meine Seite';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
/***** Inhaltsbereich ******/
echo "Hello World";
//Footer - nur dann weglassen, wenn du auch den Header weglässt
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
Warning: include(./extension.inc) [function.include]: failed to open stream: No such file or directory in /usr/export/www/hosting/flyingrabbit/mod_entwicklung/hotto.php on line 5
Warning: include() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:') in /usr/export/www/hosting/flyingrabbit/mod_entwicklung/hotto.php on line 5
Warning: include(./common.) [function.include]: failed to open stream: No such file or directory in /usr/export/www/hosting/flyingrabbit/mod_entwicklung/hotto.php on line 6
Warning: include() [function.include]: Failed opening './common.' for inclusion (include_path='.:') in /usr/export/www/hosting/flyingrabbit/mod_entwicklung/hotto.php on line 6
Fatal error: Call to undefined function session_pagestart() in /usr/export/www/hosting/flyingrabbit/mod_entwicklung/hotto.php on line 10
Danke im vorraus.
Gruß euer <Hoppel>