0

I made an index.php file with this require:

require 'Model\Db.php';
require 'Model\User.php';
require 'Model\Collection\UserCollection.php';
require 'View\ListView.php';
require 'View\FormView.php';
require 'View\MenuView.php';
require 'Controller\Controller.php';

on my laptop there are no problem but on the server it doesn't work. I don't have any warning (and I don't know how to activate them on server), I think is require fault because code after them are not executed.

In my log report I have:

PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/svyshloc/public_html/Esome/index.php:15) in /home/svyshloc/public_html/Esome/index.php on line 44

and code bugged is this:

if (($setting_page['basename'] == "Esome")) {
header("location: index.php?page=home");
} else {

$page = $url['page'];
}
Francesco1984
  • 501
  • 2
  • 5
  • 9

1 Answers1

0

Check your servers error logs. I've had same problem before with iPage servers but it got solved after I saw the real error from the servers logs.

Jerry U
  • 618
  • 9
  • 22