"@" before method

Asked

Viewed 41 times

0

I’m running some tests with the function ldap_bind() and came across something I don’t know and didn’t find in research.


Considering the line of the script:

$bind = ldap_bind($ldap_conn, $auth_user.$domain, $auth_pass) or die("Erro em bind");

If my authentication fails, it will be printed:

Warning: ldap_bind(): Unable to bind to server: Invalid credentials in C: xxx ldap.php on line 17 Error in bind

But if I use a "@" before the method:

$bind = @ldap_bind($ldap_conn, $auth_user.$domain, $auth_pass) or die("Erro em bind");

It does not print the Warning:

Error in bind


I would like to know the usefulness of this "@", if it would just not print returns, etc!?

  • Po man, I can’t find anything in the OR search.

  • 3

    It is not your fault, for some time we have complained of some flaws in the search engine that appears at the moment you are writing the question. I hope they improve that one day.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.