oi, ik heb 2 jaar terug een site ontworpen die perfect werkte.
Vandaag maak ik een nieuwe met dezelfde structuur en ik stuit op verschillende problemen.
Het is een site met 3 talen en word aangesproken via directories.
Als ik op mijn index.php kom krijg ik de volgende melding
IN MENU
Warning: Invalid argument supplied for foreach() in /Applications/xampp/xamppfiles/htdocs/HDD/inc/menu.inc.php on line 2
IN CONTENT
Warning: include(//.inc.php) [function.include]: failed to open stream: No such file or directory in /Applications/xampp/xamppfiles/htdocs/HDD/index.php on line 62
Warning: include() [function.include]: Failed opening '//.inc.php' for inclusion (include_path='.:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear') in /Applications/xampp/xamppfiles/htdocs/HDD/index.php on line 62
KLIK ik op de ned taalknop
komt mijn menu tevoorschijn maar in content krijg ik dit
Warning: include(ned//.inc.php) [function.include]: failed to open stream: No such file or directory in /Applications/xampp/xamppfiles/htdocs/HDD/index.php on line 62
Warning: include() [function.include]: Failed opening 'ned//.inc.php' for inclusion (include_path='.:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear') in /Applications/xampp/xamppfiles/htdocs/HDD/index.php on line 62
Terug als ik op de menu klik vb wie zijn wij opend hij niet de default.inc.php
de onderliggen opend hij dan wel.
Al mijn mappen zijn corect en mijn pagina's ook.
Hieronder de codes.
Ik hoop dat jullie mij kunnen helpen.
heb je vragen mail maar
vriendelijke groeten en bedankt bij voorbaat
---------------------------------------------
geplaatst in de index.php
<?php include("inc/lang.inc.php"); ?>
<?php include("inc/menu.inc.php"); ?>
<?php include($l."/".$dir."/".$page.".inc.php"); ?>
---------------------------------------------
lang.inc.php
<?php
include("inc/array_taal.inc.php"
);
foreach($lang as $key1 => $value1) {
?>
<td><a href="index.php?l=<?php echo $key1; ?>"><img src="images/<?php echo $key1; ?>_knop.jpg" border="0"></a></td>
<?php }; ?>
---------------------------------------------
menu.inc.php
<?php
foreach ($lang[$l] as $key1 => $value1){
echo "<table border='0' cellpadding='2' cellspacing='0'>";
echo "<tr>";
echo "<td> <font size='2' face='Verdana'><a href='".$_SERVER["PHP_SELF"]."?l=".$l."&dir=".$key1."'>".$a_proper[$key1]."</a></font></td>";
echo "</tr>";
if($_GET["dir"] == $key1){
foreach ($lang[$_GET["l"]][$key1] as $key2 => $value2){
echo "<tr>";
echo "<td> <font size='2' face='Verdana'><a href='".$_SERVER["PHP_SELF"]."?l=".$l."&dir=".$key1."&page=".$value2."'>".$a_proper[$value2]."</a></font></td>";
echo "</tr>";
echo "<table>";
}
}
}
?>
---------------------------------------------
array_taal.inc.php
Ik heb het kunnen oplossen bedankt voor uw reacties
gr danny
294 views