Answer the question
In order to leave comments, you need to log in
Compiled index.php for a one-pager, what's wrong?
Hello. I'm just learning php, wrote a simple index.php for a single page block. What is done wrong?
Header("Content-Type: text/html;charset=UTF-8");
define("_ROOT", __DIR__ . '/');
define("_BASEURL", "http://" . $_SERVER["HTTP_HOST"]);
define("_BLOCKS", __DIR__ . '/blocks/');
include_once _BLOCKS . 'header.php';
include_once _BLOCKS . 'nav.php';
include_once _BLOCKS . 'slider.php';
include_once _BLOCKS . 'about.php';
include_once _BLOCKS . 'portfolio.php';
include_once _BLOCKS . 'contacts.php';
include_once _BLOCKS . 'footer.php';
Answer the question
In order to leave comments, you need to log in
define("_ROOT", __DIR__ . '/');
define("_BASEURL", "http://" . $_SERVER["HTTP_HOST"]);
define("_BLOCKS", __DIR__ . '/blocks/');
The title was sent ahead of time, if you still have php code running in your includes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question