Op mij lokale Apache Webserver 2.0.45 met PHP versie 4.3.2 RC1 heb ik een php script dat maar niet wil werken. De inhoud van inhoud.php is als volgt:
<head>
<title><a name="top"><?php
echo $titel;
?></a>
</title>
</head>
<body background="../images/BackGround.gif">
<table border="0" width="460" align="left" cellspacing="0" cellpadding="0">
<font face="Arial Black" size="2"><u><?php echo $titel; ?>
</u></font><br><br>
<?php
include $hoofdstuk.".html";
?><br><br>
<center><font face="Arial" size="1">
<a href="#top">[Naar Boven Gaan]</a>
</font>
</center>
</table>
</body>
bij het oproepen van deze pagina bijv met de url:
inhoud.php?titel=Wat%20is%20DVD&hoofdstuk=watis
krijg ik een dergelijke error:
Warning: main(.html) [function.main]: failed to open stream: No such file or directory in E:\Server\elex\PO1\inhoud\inhoud.php on line 32
Warning: main() [function.include]: Failed opening '.html' for inclusion (include_path='.;c:\php4\pear') in E:\Server\elex\PO1\inhoud\inhoud.php on line 32
ik zou niet weten wat ik verkeerd doe, de site doet het bijv wel op Lycos!
heel erg bedankt alvast
<head>
<title><a name="top"><?php
echo $titel;
?></a>
</title>
</head>
<body background="../images/BackGround.gif">
<table border="0" width="460" align="left" cellspacing="0" cellpadding="0">
<font face="Arial Black" size="2"><u><?php echo $titel; ?>
</u></font><br><br>
<?php
include $hoofdstuk.".html";
?><br><br>
<center><font face="Arial" size="1">
<a href="#top">[Naar Boven Gaan]</a>
</font>
</center>
</table>
</body>
bij het oproepen van deze pagina bijv met de url:
inhoud.php?titel=Wat%20is%20DVD&hoofdstuk=watis
krijg ik een dergelijke error:
Warning: main(.html) [function.main]: failed to open stream: No such file or directory in E:\Server\elex\PO1\inhoud\inhoud.php on line 32
Warning: main() [function.include]: Failed opening '.html' for inclusion (include_path='.;c:\php4\pear') in E:\Server\elex\PO1\inhoud\inhoud.php on line 32
ik zou niet weten wat ik verkeerd doe, de site doet het bijv wel op Lycos!
heel erg bedankt alvast
PSN: ChrisCalculus