I have an engine:
<?php include ('/core.php'); $page = (isset($_GET['page'])?$_GET['page']:'default'; switch ($page) { case ('register'): include ('/style/register.php'); break; default : include ('/style/index.php'); break; } ?>
But no matter how I tried to configure it, the site does not work. Tell me, please, what to do. and also, the fact that the files are in style is all true!
include ('/core.php');
- this is not true, you need to write something like: include ($ _SERVER ['DOCUMENT_ROOT']. '/ core.php'); - Alex Kapustin