What is the meaning of @ in @file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SmartPHP
    New Member
    • Jul 2007
    • 22

    What is the meaning of @ in @file

    can someone tell me what is the meaning of @ if i say @file or @ora_parse etc.
  • abertay
    New Member
    • Jul 2007
    • 10

    #2
    hi pal,

    @ is an error suppression operator.Genera lly used to display our own
    (User specified) error messages.

    Here is the sample code ....

    // Connect to the database server
    $dbcnx = @mysql_connect( "localhost" , "root", "");

    if(!$dbcnx)
    {
    echo "<P>Unable to connect to the database server at this time.</P>";
    exit();
    }

    Comment

    Working...