usage of @ symbol in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishna5
    New Member
    • Feb 2007
    • 4

    usage of @ symbol in php

    hi friends,

    i am using the function "imagecreatefro mjpeg" in my php program.
    1) while running, it outputs the message undefined function.
    2) if i put @ before that function like this '@imagecreatefr omjpeg' it doesn;t return the error message. but also it doesn't give the result.

    please hekp me
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by krishna5
    hi friends,

    i am using the function "imagecreatefro mjpeg" in my php program.
    1) while running, it outputs the message undefined function.
    2) if i put @ before that function like this '@imagecreatefr omjpeg' it doesn;t return the error message. but also it doesn't give the result.

    please hekp me
    Hi krishna5,

    The @ symbol is used to suppress error messages.

    It sounds like you haven't installed the GD functions. If you view phpinfo(), what does the page say under the GD heading?

    Comment

    • ctsasikumar
      New Member
      • Nov 2006
      • 17

      #3
      Hi krishna,

      php 3 types of error is there.

      1.Normal error
      2.Warning error
      3.Fatal Error.

      the function before @ is used avoid to show error message in waring errors...

      Comment

      Working...