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

Grimlock -  
jordane45 Messages postés 30427 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

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

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