Trapping errors fopen

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Brooks

    Trapping errors fopen

    How do I stop the on-screen reporting of the handle error when the file
    does not exist yet ?

    if (($handle1 = fopen($authFile 3, 'r')) === FALSE) { return false; }

    Richard.

    --
    "This week I have mostly been listening to -
    The Film Music of Alan Rawsthorne and British Film Music Volumes I & II.
  • countach

    #2
    Re: Trapping errors fopen

    En las nuevas, el Richard Brooks escribió:
    How do I stop the on-screen reporting of the handle error when the
    file does not exist yet ?
    >
    if (($handle1 = fopen($authFile 3, 'r')) === FALSE) { return false; }
    >
    Richard.
    --- @fopen(...

    An @ before any command will avoid the on screen error message flush .


    Comment

    • Richard Brooks

      #3
      Re: Trapping errors fopen

      countach said the following on 19/03/07 15:12:
      En las nuevas, el Richard Brooks escribió:
      >How do I stop the on-screen reporting of the handle error when the
      >file does not exist yet ?
      >>
      >if (($handle1 = fopen($authFile 3, 'r')) === FALSE) { return false; }
      >>
      >Richard.
      >
      --- @fopen(...
      >
      An @ before any command will avoid the on screen error message flush .
      So simple! Many thanks and yet damn you (in the nicest possible sense)
      as that means I have to carry on working now. :-)

      Richard.


      --
      "This week I have mostly been listening to -
      The Film Music of Alan Rawsthorne and British Film Music Volumes I & II.

      Comment

      Working...