Some dought's .......................
Posted: Thu Aug 23, 2007 10:52 pm
what is the difference between :-
and
Thanks
Code: Select all
@session_start();Code: Select all
session_start();A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
@session_start();Code: Select all
session_start();THANKS[/s]Jcart wrote:The @ will supress any error messages a function might spit out. Generally you should avoid it's usage, unless it is very much neccesary.
There are no situations where it's necessary. On a development or staging server you should allow all errors to be displayed, on a production server you disable all errors from being displayed. Neither calls for the @ operator.Jcart wrote:Generally you should avoid it's usage, unless it is very much neccesary.
erhmm.. yea.onion2k wrote:There are no situations where it's necessary. On a development or staging server you should allow all errors to be displayed, on a production server you disable all errors from being displayed. Neither calls for the @ operator.Jcart wrote:Generally you should avoid it's usage, unless it is very much neccesary.