+ Reply to Thread
Results 1 to 4 of 4

Thread: Php error handling

  1. #1
    Jaan Guest

    Php error handling

    Last edited by Jaan; 06-08-2010 at 10:33 AM.

  2. CODECALL Circuit advertisement

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    ahhh fopen a php file...fun times

  4. #3
    acccapulco is offline Newbie
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Re: Php error handling

    I am using very similar code:
    Code:
    error_reporting (E_ALL);
    function 
    on_error ($num$str$file$line) {
            global 
    $errors_buffer;
            
    $errors_buffer[] = array('num'=>$num'str'=>$str'file'=>$file'line'=>$line);
    }
    set_error_handler("on_error"); 
    In footer of my application I send e-mail containing $errors_buffer to myself. Users of my website doesn't see any errors and I have a message when something goes wrong.

  5. #4
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Php error handling

    I'll just stick with die().

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image fetch error handling
    By bbqroast in forum PHP Development
    Replies: 5
    Last Post: 07-17-2011, 01:28 AM
  2. An error i got whilst handling classes - php
    By totonex in forum PHP Development
    Replies: 4
    Last Post: 08-17-2009, 03:57 AM
  3. System.Net.WebClient error handling
    By deas in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-12-2009, 01:49 PM
  4. VB6.0:Tutorial, Error handling
    By TcM in forum Visual Basic Tutorials
    Replies: 11
    Last Post: 12-22-2008, 08:03 PM
  5. Error handling
    By tony.willson in forum PHP Development
    Replies: 0
    Last Post: 12-01-2007, 10:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts