- Code: Tout sélectionner
<?php echo '<a href="' . append_sid('?link=news') . '">News</a>' ?>
remplace par:
- Code: Tout sélectionner
echo '<a href="' . append_sid('?link=news') . '">News</a>';
t'avais oublié le ;
Modérateur: Equipe
<?php echo '<a href="' . append_sid('?link=news') . '">News</a>' ?>echo '<a href="' . append_sid('?link=news') . '">News</a>';


<?php

<?php echo '<a href="' . append_sid('news.php') . '">News</a>'; ?>[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at D:/xampp/htdocs/stylemario/simple/accueil.php:20)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at D:/xampp/htdocs/stylemario/simple/accueil.php:20)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at D:/xampp/htdocs/stylemario/simple/accueil.php:20)


append_sid('news.php')<a href="<?php echo append_sid("{phpbb_root_path}news.$phpEx"); ?>">News</a>

sylver35 a écrit:Bonjour,
Je pense que à force d'avoir le nez collé sur la page, tu ne voit pas l'erreur la plus grosse:
- Code: Tout sélectionner
append_sid('news.php')
Ne pense tu pas qu'il te manque un bout de code très important dans ton lien,
Je parle de phpbb_root_path... Et de $phpEx..
Puis de mieux imbriquer ton php dans ton html...
phpbb_root_path détermine le chemin de phpbb et $phpEx est indispensable pour appeler un fichier php: $phpEx = substr(strrchr(__FILE__, '.'), 1);
Essaie ceci:
- Code: Tout sélectionner
<a href="<?php echo append_sid("{phpbb_root_path}news.$phpEx"); ?>">News</a>
Et tu aura plus de chances...
<a href="<?php echo append_sid("{$phpbb_root_path}news.$phpEx") ; ?>">News</a>


<a href="<?php echo append_sid("?link=news") ; ?>">News</a>

http://actumediaz.com/index.php?link=news&sid=577ac555884c782a9f4ae26d673a0335



define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /var/www/developement/simple/accueil.php:16)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /var/www/developement/simple/accueil.php:16)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /var/www/developement/simple/accueil.php:16)
$cd = "./img/";//icone et image news\\
$cd1 = "./image/";//image du style\\
$cd3 = "image/";//les fleche\\
$cd4 = "./utilitaire/";//les uttilitaires\\
require("bbcode.php");
Retourner vers Coding, Webmastering et Sécurité informatique
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 9 invités