How to use error_reporting

Asked

Viewed 131 times

1

I’ve been having a problem on my page for some time. I’ve reviewed my Model, Controller and View and nothing. Simply the screen turns white (but no error appears) and nothing works.

I want to know what would be the best way to find that problem. It would be with error_reporting? If so, how do I use it?

  • Take the opportunity to see this and some other common errors in wiki tag do php in addition to other tips and suggested materials for study. :)

  • 1

    Which framework are you using? Because it’s not hard to explain how to use something without telling you where to put it. Maybe it helps if you post Model, View and Controller.

  • @Guilhermenascimento I’m using Codeigniter

  • Chara, posting some code should be relevant.

  • The code is huge, it gets a little complicated

1 answer

2


  • I didn’t understand the part about creating the file, and why. Could you explain it better? I’m starting in this business, and I know very little.

  • http://php.net/manual/en/function.phpinfo.php phpinfo will display all your PHP settings, it’s vital you understand how things are configured.

  • 1

    I also don’t see the need for phpinfo for the answer, since anyway you are using the ini_set.

  • According. Reply edited.

  • @Where should I put this code?

  • @Guilhermewermann The changes will take place from these lines down, so put them as early as possible in your application to give the maximum coverage and show the error you seek.

  • Thank you! @Gebender

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.