SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2003
    Location
    California
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Turning off error messages

    I want to turn off error messages for getimagesize and unlink functions. Anyone know how to do it?

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by atbagsend
    I want to turn off error messages for getimagesize and unlink functions. Anyone know how to do it?
    just do this.

    $size = @getimagesize ("img/flag.jpg" );

    or you can set your own custom error handling (http://www.php.net/manual/en/ref.errorfunc.php | http://www.php.net/manual/en/functio...or-handler.php)


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
  •