require_once instead of require in index.php