Forum Moderators: coopster
if(isSet($page)){ include("pages/".$page.".php");
}else{
include("news.php");
}
Whenever things go wrong, it'll go like this:
Warning: main(pages/ohoh.php): failed to open stream: No such file or directory in /home/mememe/public_html/index.php on line 69
Warning: main(pages/ohoh.php): failed to open stream: No such file or directory in /home/mememe/public_html/index.php on line 69
Warning: main(): Failed opening 'pages/ohoh.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mememe/public_html/index.php on line 69
Is there any way to make an errorthing for this?
Like that it just echos 'Error', instead of the php-warnings?
As always many thanks in advance