simple error trapping question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phlibphlob
    New Member
    • Oct 2006
    • 3

    simple error trapping question

    Hi. I was quite used to seeing all the lines and lines of error text, when I make a mistake.

    I have moved to a server where all the error trapping has been sewn up tight (I assume in php.ini). Now that's great in the main direstories, that any errors don't splatter down the page.

    However, in my development directory, I'm making mistakes and want to see them spalttered down the page, so I can see where I'm going wrong.

    I've checked the documentation, and error_reporting (1); just isn't doing anything for me. Nor is display_errors( 1);

    I just want to tell PHP to let it all hang out. "I'm in development mode. I'm making mistakes. Yes I'm dumb. Tell me what's happening." But alas, PHP isn't understanding me.

    Help !!
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    What does
    Code:
    error_reporting(E_ALL);
    for you?
    See also Error handling and Logging functions

    Ronald :cool:

    Comment

    • phlibphlob
      New Member
      • Oct 2006
      • 3

      #3
      Sorry, but it a very simple program still refuses me any output:

      Code:
      <?php
      error_reporting(E_ALL);
      crash
      ?>
      What could be simpler? But I still get a blank screen.

      Comment

      • phlibphlob
        New Member
        • Oct 2006
        • 3

        #4
        No answers then? I've read all the PHP manual entries on errors and error trapping. I'm still none the wiser.

        I want to counteract whatever has been set in php.ini and display my errors. Is this possible - yes or no?

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          You'll have to talk to your provider. There must be some reason why it is set off (or just ignorance of the installer).

          Ronald :cool:

          Comment

          Working...