• 0
Sign in to follow this  
Guest W-V

Header ('location: Link.php');

Question

Guest W-V

Fala galera.

Estou com um problema no header ('Location: banner_lista.php');

Tenho uma página de atualização, e nela tem um include logoMenu_admin.php e é nesse include que acho que está dando o problema, só que não sei o porque, pois nunca aconteceu isso.

Segue abaixo o código da mensagem de erro:

Warning: Cannot modify header information - headers already sent by (output started at //localhost/includes/logoMenu_admin.php:24) in //localhost/admin/banner_atualiza.php on line 268

Se alguém puder ajudar, agradeço desde já!

abraço!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

"Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file."

http://www.php.net/header

Share this post


Link to post
Share on other sites
  • 0
Guest frnd

coloque na primeira linha

ob_start();

e na ultima

ob_end_flush();

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this