I have an engine:

<?php include ('http://pokelight.pz9.ru/core.php'); $page = $_GET['page']; switch ($page) { default : case '': include ('http://pokelight.pz9.ru/style/main.php'); break; case 'register': include ('http://pokelight.pz9.ru/style/register.php'); break; } ?> 

on the local server, it works, but as it is flooded, the current stopped working =) Please tell me what the error is

    2 answers 2

     <?php include ('/core.php'); $page = (isset($_GET['page'])?$_GET['page']:'default'; switch ($page) { case ('register'): include ('/style/register.php'); break; default : include ('/style/main.php'); break; } ?> 

    True, I do not understand what the main page and registration page do in the style folder. Would you check the path ...

      apparently on hosting in php.ini links are disabled

       allow_url_include = Off allow_url_fopen = Off 

      but you need to be On

      if all files are on the same server, then you need to do so as written by DemoS