podium4 schreef:als ik je goed begrijp zit het zo:
map htdocs...
--------in die map:
---------------------phpbb2/etc...
---------------------testframes/eigen pagina's...
klopt....
podium4 schreef:
het is de bedoeling van de regel $phpbb_root_path = "../phpBB2/";
dat je opgeeft waar de map phpBB2 te vinden is... en volgens mij kan dat zo niet met een relatief path maar moet dat gewoon met een absoluut path... dus zoiets ongeveer:
$phpbb_root_path = "localhost/phpBB2/";
Ik heb inmiddels het volgende geprobeerd:
$phpbb_root_path = "/phpBB2"; geeft:
Warning: main(/phpBB2/extension.inc): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(): Failed opening '/phpBB2/extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(/phpBB2/common.): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Warning: main(): Failed opening '/phpBB2/common.' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Fatal error: Call to undefined function: session_pagestart() in /usr/local/apache2/htdocs/testframes/gallery.php on line 11
$phpbb_root_path = "/usr/local/apache2/htdocs/phpBB2"; geeft
Not Found
The requested URL /testframes/login.php was not found on this server
$phpbb_root_path = "/nlastst3.gtsc.ehv1.lgphilips-displays.com/phpBB2"; geeft
Warning: main(/nlastst3.gtsc.ehv1.lgphilips-displays.com/phpBB2/extension.inc): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(): Failed opening '/nlastst3.gtsc.ehv1.lgphilips-displays.com/phpBB2/extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(/nlastst3.gtsc.ehv1.lgphilips-displays.com/phpBB2/common.): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Warning: main(): Failed opening '/nlastst3.gtsc.ehv1.lgphilips-displays.com/phpBB2/common.' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Fatal error: Call to undefined function: session_pagestart() in /usr/local/apache2/htdocs/testframes/gallery.php on line 11
$phpbb_root_path = "localhost/phpBB2"; geeft:
Warning: main(localhost/phpBB2/extension.inc): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(): Failed opening 'localhost/phpBB2/extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 5
Warning: main(localhost/phpBB2/common.): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Warning: main(): Failed opening 'localhost/phpBB2/common.' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/testframes/gallery.php on line 6
Fatal error: Call to undefined function: session_pagestart() in /usr/local/apache2/htdocs/testframes/gallery.php on line 11
Maar geen van allen werk. Zoals je ziet, is in geen van alle gevallen het path goed. Blijkbaar moet er toch iets anders staan, maar ik ben even 'out-of-options'.
Mijn gallery.php, het testbestand, ziet er trouwens als volgt uit:
<?
define('IN_PHPBB', true);
//$phpbb_root_path = "../phpBB2/";
$phpbb_root_path = "localhost/phpBB2/";
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);
//
// End session management
//
// Make sure the user is registered
$user_id = $userdata['user_id'];
$username = $userdata['username'];
if (!$userdata['session_logged_in'] && $user_id == ANONYMOUS)
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=new.$phpEx", true));
exit;
}
$page_title = "Gallery";
include($phpbb_root_path . "includes/page_header." . $phpEx);
//
// De inhoud van de pagina
//
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Gallery Voorburg</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="jimcss.css" rel="stylesheet" type="text/css">
</head>
<body background="images/bckmain745x550.jpg" bgproperties="fixed">
<center>
<br><br><br><br>
<a href="gallery1.html" target="mainFrame" alt="Voorburg" class="jimcss4"><b>Gallery optreden Corbulo College, Voorburg, 29/10/2003</b></a><br><br>
<a href="gallery2.html" target="mainFrame" alt="Pure" class="jimcss4"><b>Gallery optreden Beursgebouw Eindhoven, 23/10/2003</b></a><br><br>
<a href="gallery3.html" target="mainFrame" alt="Eindhoven" class="jimcss4"><b>Gallery optreden P.U.R.E., Hotel Arena Amsterdam, 22/10/2003</b></a><br><br>
</center>
</body>
</html>
<?
include($phpbb_root_path . "includes/page_tail.php");
?>