Results 1 to 3 of 3

Thread: or die() question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2000
    Posts
    135

    or die() question

    hello

    i have seen "or die()" used in many examples and i am just wondering how this is used. It looks like something that can be very useful. When is the die() function executed and under what conditions.. also can the die() function be any peace of code.. like "echo()" or "something = something".

    thank you

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    the die() function is executed when a statement is false.
    So any function/statements that can produce a false value/return can have the die() function attached to it.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    and if I remember right the die() function only writes to the error.log file on the server as it won't spit out any for the user except the usual, cannot connect error. the die function will write (sometimes in detail) on what the error was.

Posting Permissions

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



Click Here to Expand Forum to Full Width