Error php help pls :p

diker

1º)--------------------------------------------------------------------

{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

2º)--------------------------------------------------------------------

                    AND p.topic_id = t.topic_id
                    AND p.post_time >= $min_post_time";

3º)--------------------------------------------------------------------

    setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);

}

Esto me da fallo alguien me puede decir k ven mal? :S

EnZo

Pon el mensaje de error y el codigo php real xq eso que has puesto no tiene ninguna coherencia :D

r2d2rigo

{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

2º)--------------------------------------------------------------------

AND p.topic_id = t.topic_id
AND p.post_time >= $min_post_time";

3º)--------------------------------------------------------------------

setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}

What? Esas comparaciones estan fuera de un if o de cualquier estructura de comparacion, aparte de que has colocado las comillas a tu bola :P

Haker

r2d2rigo tiene razon, la 2º linea esta fuera de cualquier comparacion tipo
if(tal=tal AND aki lo tuyo) {

esta fuera de cualquier comparacion. arreglalo

diker

es php nuke ara pongo el error

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/includes/page_header.php on line 529

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/includes/page_header.php on line 531

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/includes/page_header.php on line 532

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/includes/sessions.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/includes/sessions.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/webcindario/clanshow/html/themes/xetahelius/theme.php:121) in /home/webcindario/clanshow/html/modules/Forums/viewtopic.php on line 596

EnZo

Esq no lo pillo tambien abre corchetes y los cierra sin ninguna coherencia al igual que el comparador ese AND pensaba que habia cortao trozos porque pensaba que los errores estan ahi...

RedHat

bua phpnuke... :\ a volverlo a instalar chavalote xDD

Usuarios habituales

  • RedHat
  • EnZo
  • diker
  • Haker
  • r2d2rigo