Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on turn off error reporting in the script? in the Shared & Semi-Dedicated forum
How can i turn off error reporting in my php scripts? error_reporting(0); seems not to be working on aletia host... maybe i have to use ...

  1. #1
    JPC Member
    Join Date
    Dec 2002
    Location
    Russia
    Posts
    4

    turn off error reporting in the script?

    How can i turn off error reporting in my php scripts?

    error_reporting(0); seems not to be working on aletia host...

    maybe i have to use htaccess? but how?
    just a signature...

  2. #2
    young and idealistic clio's Avatar
    Join Date
    Oct 2002
    Location
    Tübingen, Germany
    Posts
    2,199
    strange that it doesn't work, maybe a server configuration thing? The other thing you can do is suppress error reporting in individual functions with '@' as a last resort, I suppose.

    for example:
    PHP Code:
    if @mysql_query($query) {
       
    // put code here ....

    - Julie
    Student / Web Developer

  3. #3
    Jag Veteran dkadave's Avatar
    Join Date
    Sep 2001
    Location
    California, from Hawaii! Gotta love the ocean...
    Posts
    558
    try this:

    ini_set ('error_reporting', 0);
    ------------------------------------------------------------------------------------------------
    http://www.dkanet.com - http://www.vi01.com
    http://www.dkahost.com
    ------------------------------------------------------------------------------------------------
    AIM: dkadave - YIM: dkadave
    E-mail: dkanet@dkanet.com
    ------------------------------------------------------------------------------------------------

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
  •