Page 1 of 1
what is the '@' sign in php?
Posted: Tue Aug 12, 2008 8:32 am
by bertsmilsky
in the following php what does the '@' sign do:
1 )
Code: Select all
if(@$_SESSION['login'] !== true) {
...
}
2 )
Code: Select all
@ini_set('session.use_trans_sid', 0);
3 )
what is the difference if it was not in these examples?
thanks
Re: what is the '@' sign in php?
Posted: Tue Aug 12, 2008 8:38 am
by EverLearning
Re: what is the '@' sign in php?
Posted: Wed Aug 13, 2008 4:57 am
by bertsmilsky
thanks, that makes sense
similarly, what does this '&' sign do?
Code: Select all
if (!isset($this->globalvariables))
{
require_once(cms_join_path(dirname(__FILE__), 'class.globalvariables.inc.php'));
$globalvariables =[color=#FF0000]&[/color] new GlobalVariables();
$this->globalvariables = [color=#FF0000]&[/color]$globalvariables;
}
Re: what is the '@' sign in php?
Posted: Wed Aug 13, 2008 5:03 am
by haritha
bertsmilsky wrote:in the following php what does the '@' sign do:
1 )
Code: Select all
if(@$_SESSION['login'] !== true) {
...
}
2 )
Code: Select all
@ini_set('session.use_trans_sid', 0);
3 )
what is the difference if it was not in these examples?
thanks
Re: what is the '@' sign in php?
Posted: Wed Aug 13, 2008 5:09 am
by EverLearning