Search code examples
phperror-reportingzen-cart

Using error_reporting() in Zen cart


I am working in Zen Cart and I have some errors in different pages. I want to use error_reporting(0).

How and in which page can I use this?

Could anybody please help me?


Solution

  • Zen cart has a built in way to make it easy to do error reporting.

    Create a directory at the top of your cart called includes/local. In this directory, put a file called configure.php. In this file, put

    <?php
       define('STRICT_ERROR_REPORTING', true);
       ?>
    

    you will then see the php errors your code generates.