PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
astions wrote:What makes you say that? @ is bad. You getting headers already sent messages or something?
I'm not getting such messages. While working with PHP codes on some servers, I found that the function would not execute or give the desired result unless prefixed with @. I want to know why does this happen?
The only thing is does is suppress php from directly outputting an error message, typically when you want to handle the error yourself in a more controlled way. In no way does it alter the execution of the function.