5
Contributors
8
Replies
27
Views
3 Years
Discussion Span
Last Post by matrixdevuk
0

its just a interview quetion some one ask me in interview
i know we can edit in php.ini file display_error to "no" so the error are not display but they ask me without changing in php.ini file how can we are not display errors in php file

0

Extending pritaeas' answer... you could use this:

<?php
    // This goes at the TOP of your file(s).
    ini_set("display_errors", false);
    error_reporting(0);
0

right,
php.ini file display_error to "no" so the error are not display but they ask me without changing in php.ini file how can we are not display errors in php file

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.