How to override php.ini setting on aper application basis

Discussion in 'PHP' started by qlogixsolutions, Mar 19, 2011.

  1. #1
    Hello,

    I am setting up a script, where I need to set the display_errors to On in my php.ini file
    However I hv another application on the same server which wants me to set the display_errors value to Off.

    Is there a way I can have this working?

    I have tried to create a copy of php.ini in the root directory of the application and make the changes in that php.ini but that is not working.
     
    qlogixsolutions, Mar 19, 2011 IP
  2. qlogixsolutions

    qlogixsolutions Member

    Messages:
    130
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Hurray....I have fixed this issue by adding a line in my .htaccess file
     
    qlogixsolutions, Mar 19, 2011 IP
  3. dgreenhouse

    dgreenhouse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0