ini_set('display_errors', '1')

Posted on 2011-04-28
Last Modified: 2012-05-11
ini_set('display_errors', '0')
ini_set('display_errors', '1')

both display errors and warnings

what is command to overide php.ini
1. display errors and display warings
2. display no errors and display no warnings
Question by:rgb192
    LVL 10

    Expert Comment

    ini_set('display_errors', 0);
    ini_set('display_errors', 1);
    LVL 10

    Accepted Solution

    0 displays no warnings and 1 displays warnings.
    LVL 12

    Assisted Solution

    by:Mohamed Abowarda
    You might consider using error_reporting():

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to dynamically set the form action using jQuery.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now