Closed Thread
Results 1 to 3 of 3

Thread: PHP setting,Display error from on to off,regards.

  1. #1
    prabhu3361 is offline x10Hosting Member prabhu3361 is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    3

    PHP setting,Display error from on to off,regards.

    I have to change the PHP setting ,Display Errors to off,I dad tried by change the .htaccess file by the code
    #
    # disable display of startup errors
    #
    php_flag display_startup_errors off
    #

    #
    # disable display of all other errors
    #
    php_flag display_errors off
    #

    #
    # disable html markup of errors
    #
    php_flag html_errors off
    #

    #
    # enable logging of errors
    #
    php_flag log_errors on



    but, I got the error report as


    "Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

    can u help me to come across this problem?

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: PHP setting,Display error from on to off,regards.

    Hello,

    You cannot use php_flag or php_value in .htaccess, our setup forbids it. Server settings are system-wide.

    To turn off error displays, insert the following in your script near the top (under <?php): error_reporting( E_NONE );
    Last edited by Skizzerz; 06-25-2011 at 03:50 PM.

  3. #3
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: PHP setting,Display error from on to off,regards.

    ini_set('display_errors', 'Off')

Closed Thread

Similar Threads

  1. PHP display-errors setting.
    By thecanadiansandbox18 in forum Free Hosting
    Replies: 4
    Last Post: 05-31-2011, 11:16 AM
  2. display error
    By wanzulkarnain6924 in forum Free Hosting
    Replies: 0
    Last Post: 10-13-2010, 06:38 AM
  3. Replies: 0
    Last Post: 09-23-2010, 08:26 AM
  4. joomla need display error off
    By nguyenbang in forum Free Hosting
    Replies: 4
    Last Post: 05-08-2010, 01:48 AM
  5. Site Display Error
    By xyunaxfantasiesx in forum Free Hosting
    Replies: 3
    Last Post: 11-16-2008, 11:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers