How to get error info

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gunnar G

    How to get error info

    Hi.
    How do you get error messages if you have only ftp put/get (no shell access)
    and display error is turned off?
    Is there any clever way of getting them?

  • Carl Pearson

    #2
    Re: How to get error info

    Gunnar G wrote:
    Hi.
    How do you get error messages if you have only ftp put/get (no shell access)
    and display error is turned off?
    Is there any clever way of getting them?
    >
    Uhm, try turning it on?

    error_reporting (LEVEL);

    Replace LEVEL above with the desired int, as defined here:


    Comment

    • Rik

      #3
      Re: How to get error info

      Carl Pearson <jman_spam_trap _.org@gmail.com wrote:
      Gunnar G wrote:
      >Hi.
      >How do you get error messages if you have only ftp put/get (no shell
      >access)
      >and display error is turned off?
      >Is there any clever way of getting them?
      >>
      >
      Uhm, try turning it on?
      >
      error_reporting (LEVEL);
      Let's not forget display_errors is off....

      ini_set('displa y_errors',true) ;

      Or alternatively, log to a file:

      ini_set('log_er rors',true);
      ini_set('error_ log','/path/to/my/error/file');
      --
      Rik Wasmus

      Comment

      Working...