ik ben bezig met me site en heb nu dit:
de bedoeling is dus dat als je tools.php?pagina=hoi doet dat er hoi.php word geincluded dat werkt
maar ik wil dus dat als hoi.php niet bestaat hij 404.php opent
dat lukt me niet
EDIT: en als er geen ?pagina= is word tools/page/index.php geincluded graag
[COLOR= #0000BB]<?php
$pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pagina[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]error[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"$error"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"tools/page/$pagina.php"[/COLOR][COLOR= #007700]);[/COLOR]
?> de bedoeling is dus dat als je tools.php?pagina=hoi doet dat er hoi.php word geincluded dat werkt
maar ik wil dus dat als hoi.php niet bestaat hij 404.php opent
dat lukt me niet
EDIT: en als er geen ?pagina= is word tools/page/index.php geincluded graag
zo kan het wel: 

