Flipkikker
Legacy Member
lo,
Ik heb een probleempje met mijn php script
Ik wou het dit keer meteen overzichtelijk aanpakken en werkte dan ook met includes, natuurlijk werkt de parser weer tegen en vindt hij de bestanden niet :ironic:
De bestanden index.php en top.php staan hierboven, top.php is enkel om te tonen waarvoor ik die $_GET nodig heb
Hieronder heb ik de foutmelding vermeld:
Er moet blijkbaar iets ingesteld worden van include path ofzo
Mvg RealReality
[edit]Nog even het adres van de testsite erbij vermelden
http://puutjuwelen.sohosted.com/puutjuwelen[/edit]
Ik heb een probleempje met mijn php script
Ik wou het dit keer meteen overzichtelijk aanpakken en werkte dan ook met includes, natuurlijk werkt de parser weer tegen en vindt hij de bestanden niet :ironic:
PHP:
<!-- ___index.php___ -->
<?php
/****
*** SETUP VARIABLES ***
****/
// INITIALISING 'OPTION' VALUE
$option = "INFO";
if(isset($_GET['gallery1']))
{
$option = "GAL1";
}
elseif(isset($_GET['gallery2']))
{
$option = "GAL2";
}
elseif(isset($_GET['links']))
{
$option = "LINK";
}elseif(isset($_GET['contact']))
{
$option = "CONT";
}
/****
*** RENDER PAGE ***
****/
/** TOP *////
include("includes/top.php?included=$option");
/** MIDDLE *////
// VERIFICATION 'OPTION' VALUE
switch($option)
{
case 'INFO':
include("includes/info.php?included");
break;
case 'GAL1':
include("includes/gallery.php?included=1");
break;
case 'GAL2':
include("includes/gallery.php?included=2");
break;
case 'LINK':
include("includes/link.php?included");
break;
case 'CONT':
include("includes/contact.php?included");
break;
}
/** BOTTOM *////
if($option != 'INFO' && $option != 'LINK' && $option != 'CONT')
{
include("includes/bottom.php?included");
}
?>
PHP:
<!-- ___includes/top.php___ -->
<?php
if(isset($_GET['included']))
{
$menu = $_GET['included'];
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/style.css" title="puutjuwelen">
<title>PuutJuwelen 05/02/2005</title>
</head>
<body scroll="auto">
<table id="site" cellspacing="0">
<tr>
<td id="tleftf"> </td>
<td id="tleftf2"> </td>
<td id="tcenterf" colspan="3"> </td>
<td id="trightf2"> </td>
<td id="trightf"> </td>
</tr>
<tr>
<td id="hleftf"> </td>
<td id="hleftf2"> </td>
<td id="header" colspan="3"> </td>
<td id="hrightf2"> </td>
<td id="hrightf"> </td>
</tr>
<tr>
<td id="mleftf"> </td>
<td id="mleftf2"> </td>
<td id="mcenterf" colspan="3"><a class="menu" <?php if($menu=='INFO'){ ?>id="activated" <?php }?> href="index.php">Info</a><a class="menu" <?php if($menu=='GAL1'){ ?>id="activated" <?php }?> href="index.php?gallery1">Gallerij 1</a></a><a class="menu" <?php if($menu=='GAL2'){ ?>id="activated" <?php }?> href="index.php?gallery2">Gallerij 2</a><a class="menu" <?php if($menu=='LINK'){ ?>id="activated" <?php }?> href="index.php?links">Links</a><a class="menu" <?php if($menu=='CONT'){ ?>id="activated" <?php }?> href="index.php?contact">Contact</a></td>
<td id="mrightf2"> </td>
<td id="mrightf"> </td>
</tr>
<?php
}
?>
De bestanden index.php en top.php staan hierboven, top.php is enkel om te tonen waarvoor ik die $_GET nodig heb

Hieronder heb ik de foutmelding vermeld:
index.php zei:Warning: main(includes/top.php?included=INFO): failed to open stream: No such file or directory in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 32
Warning: main(includes/top.php?included=INFO): failed to open stream: No such file or directory in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 32
Warning: main(): Failed opening 'includes/top.php?included=INFO' for inclusion (include_path='.;C:\PHP\pear') in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 32
Warning: main(includes/info.php?included): failed to open stream: No such file or directory in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 42
Warning: main(includes/info.php?included): failed to open stream: No such file or directory in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 42
Warning: main(): Failed opening 'includes/info.php?included' for inclusion (include_path='.;C:\PHP\pear') in c:\domains\puutjuwelen.sohosted.com\wwwroot\puutjuwelen\index.php on line 42
Er moet blijkbaar iets ingesteld worden van include path ofzo
Mvg RealReality
[edit]Nog even het adres van de testsite erbij vermelden
http://puutjuwelen.sohosted.com/puutjuwelen[/edit]