2010-12-11 8 views
0

Je suis assez sûr que c'est probablement (ou) qui le cause peut-être un trop grand nombre d'entre eux.erreur de syntaxe inattendue T_BOOLEAN_OR

$filechk1 = "/temp/files/" . $data[0] . ".doc"; 
$filechk2 = "/temp/files/" . $data[1] . ".doc"; 
$dirchk1 = "/temp/files/" . $batchid . "/" .$data[0] . ".doc"; 
$dirchk2 = "/temp/files/" . $batchid . "/" . $data[1] . ".doc"; 

if(is_file($filechk1) && (is_file($filechk2))) || (is_file($dirchk1) && (is_file($dirchk2))){ 
    ... 
} 

Répondre

5

parenthèses incorrectement placées. Doit être ceci.

if ((is_file($filechk1) && is_file($filechk2)) || (is_file($dirchk1) && is_file($dirchk2))) 
Questions connexes