Parse error: syntax error, unexpected ';', expecting ')'

Grimlock -  
jordane45 Messages postés 40053 Date d'inscription   Statut Modérateur Dernière intervention   -
Bonjour,
j'ai un problème avec mon code php mais je ne comprends pas qu'est-ce que c'est car pour moi il n'y a aucun problème , désolé je débute :/

  'A_COOKIE_SETTINGS'  => addslashes('; path=' . $config['cookie_path'] . ((!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain']) . ((!$config['cookie_secure']) ? '' : '; secure')),
//-- mod : Paypal Donation --------------------------------------------------------
//-- add
 $template->assign_vars(array(
   'U_DONATE'        => $auth->acl_get('u_pdm_use') ? append_sid("{$phpbb_root_path}donate.$phpEx") : '',
   'S_DONATE_ENABLED' => $auth->acl_get('u_pdm_use'),
 ));
//-- end : Paypal Donation --------------------------------------------------------
 ));

 // application/xhtml+xml not used because of IE
 header('Content-type: text/html; charset=UTF-8');

 header('Cache-Control: private, no-cache="set-cookie"');
 header('Expires: 0');
 header('Pragma: no-cache');

 if (!empty($user->data['is_bot']))


2 réponses

jordane45 Messages postés 40053 Date d'inscription   Statut Modérateur Dernière intervention   4 762
 
Bonjour
ligne 6 ...une virgule en trop a la fin de ton array.

2
NHenry Messages postés 15490 Date d'inscription   Statut Modérateur Dernière intervention   368
 
Essayes de construire tes chaines par avance pour voir sur quelle expression tu as un problème, car tes lignes sont trop complexes.
1