Page 1 of 1

Some dought's .......................

Posted: Thu Aug 23, 2007 10:52 pm
by myharshdesigner
what is the difference between :-

Code: Select all

@session_start();
and

Code: Select all

session_start();
Thanks

Posted: Thu Aug 23, 2007 10:53 pm
by John Cartwright
The @ will supress any error messages a function might spit out. Generally you should avoid it's usage, unless it is very much neccesary.

Posted: Thu Aug 23, 2007 11:05 pm
by myharshdesigner
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.
THANKS[/s]

Posted: Fri Aug 24, 2007 2:47 am
by onion2k
Jcart wrote: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.

Posted: Fri Aug 24, 2007 9:36 am
by John Cartwright
onion2k wrote:
Jcart wrote: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.
erhmm.. yea.