V ziadnej pomienke nemozem totizto pouzivat && , musim pouzivat AND. Myslim si ze to bude chyba v konfiguracii php.ini / httpd.conf , no neviem v com konkretne, nakolko som tieto subory prebehol od hora dole najmenej 20 krat a nic ohladom tejto problematiky som tam nevedel najst.
Priklad kodu ktory nefunguje po zmene AND na && :
public function isRequiredByUID($uid,$required) {
if(is_numeric($uid) AND $uid > $required)
{
$this->render(ROOT.DS.'public'.DS.'templates'.DS.DEFAULT_TEMPLATE.DS.'errors'.DS.'required0.tpl');
die;
}
}
Vypisuje to
Parse error: syntax error, unexpected T_VARIABLE in ... on line 49
Neviete co s tym?
Dakujem
if(is_numeric($uid) AND $uid > $required)
zapisat takto:
if((is_numeric($uid)) && ($uid > $required))
to mas tak, ked beries meno uid0 nadarmo :))
Diky pekne
localhost:
PHP 5.3.1 (cli) (built: Nov 20 2009 12:52:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies