Results 1 to 4 of 4

Thread: Want php to show warnings & errors

  1. #1
    Join Date
    Jan 2009
    Posts
    97

    Want php to show warnings & errors

    Hello everyone,
    Messed up with working with a server,on php platform,making always disturbance with lots of adhoc scripts which running to turn the warnings and errors on the server in the php.ini file.my question is how can i plan the warnings and errors to display on a per page/script basis? I just need to include in each file one line of code

    Any help would be greatly received...

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Want php to show warnings & errors

    display errors allows that all reported errors are actually output to the browser.error reporting emphasizes which types errors should be logged/displayed.while for a live server, it's a good idea to not to display errors publicly .set error reporting to a more inclusive value since avoiding errors is generally not appreciable...

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Want php to show warnings & errors

    you need to put instructions like this
    error_reporting
    (E_NOTICE
    E_ERROR
    E_WARNING
    E_PARSE
    E_CORE_ERROR | E_CORE_WARNING
    E_COMPILE_ERROR | E_COMPILE_WARNING
    E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE );

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Want php to show warnings & errors

    Friend you have to open your php.ini and search for the option error_reporting.
    modify it to E_ALL & ~E_NOTICE.
    it can show all errors and warnings,with out notices.
    it always better option to use E_ALL on server since we get often notices are signs to potential code problems,things this should help you..

Similar Threads

  1. Getting several Avast warnings
    By Cheenu in forum Networking & Security
    Replies: 5
    Last Post: 16-07-2011, 07:12 PM
  2. PHP suppress warnings
    By HAKAN in forum Software Development
    Replies: 3
    Last Post: 19-06-2009, 12:05 PM
  3. silde show and various folder errors HELP!!
    By macca67 in forum Operating Systems
    Replies: 2
    Last Post: 12-06-2009, 08:47 PM
  4. Replies: 0
    Last Post: 05-02-2009, 11:34 PM
  5. w32time + PDC + External time source = errors + warnings
    By Jéjé in forum Windows Server Help
    Replies: 4
    Last Post: 15-02-2005, 07:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,509,871.51056 seconds with 17 queries