How to turn on PHP error reporting

Discussion in 'Site & Server Administration' started by dartdesign, Jun 29, 2008.

  1. #1
    Hello,

    I am trying to install script on my new webhost, everything seems to be ok, but when i go to the step with testDB connections i get blank page, from support team told me to activate PHP error reporting -
    error_reporting(E_ALL)

    but i don't have enough knowledge about .htaccess file.

    From web host told me by adding the appropriate php_flag or
    php_value directive to an .htaccess file in your /httpdocs directory.

    Can anybody write an example for me please, i will be really thankful to you!

    Kind regards,
    Kal
     
    dartdesign, Jun 29, 2008 IP
  2. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #2
    Put that after the <?php/<? tag in the php tag.
     
    blueparukia, Jun 29, 2008 IP
  3. IGiveMoney

    IGiveMoney Peon

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    also something to look for when you get the 'blank page' on running php stuff

    look in your directory of the script you may see a file called 'error.txt' in there.
    open that file and it will show you a hint of what is going on.

    hope this helps
     
    IGiveMoney, Jun 29, 2008 IP