Jump to content


Photo

Q Erro é Esse!


  • Faça o login para participar
6 replies to this topic

#1 Bart Simpson

Bart Simpson

    ...................

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Interesses:Counter-Strike e WebDesign!

Posted 04/12/2003, 15:57

Ae pessoal!!!!
q beleza de erro é esse?????

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/csonline/public_html/downloads/filedb.php:11) in /home/csonline/public_html/downloads/online.php on line 35

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/csonline/public_html/downloads/filedb.php:11) in /home/csonline/public_html/downloads/online.php on line 35



#2 Robson

Robson

    Turista

  • Usuários
  • 46 posts
  • Sexo:Não informado

Posted 04/12/2003, 16:11

o cookie tem que ser enviado antes de qualquer saida para o browser, ou seja: antes de qualquer codigo em html ou php.

#3 Bart Simpson

Bart Simpson

    ...................

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Interesses:Counter-Strike e WebDesign!

Posted 05/12/2003, 09:56

então eu coloko anted de td!!!

#4 Bart Simpson

Bart Simpson

    ...................

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Interesses:Counter-Strike e WebDesign!

Posted 05/12/2003, 10:25

Arruma ae pra min!!!!!!!!!!!!!
é a pagina inteira ae!!!!




<html>
  <head>
  <meta http-equiv="Content-Language" content="en-us">
  <title>CS On-line -  Downloads</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

 
<body bgcolor="#595959" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="780" height="303" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2"><table width="780" border="0" cellpadding="0" cellspacing="0">
<tr>
          <td width="513" bgcolor="373737"><div align="center">
              <table width="468" height="60" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666" bgcolor="#333333">
<tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
</div></td>
          <td width="267" height="122"><img src="images/download_02.gif" width="267" height="122"></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td colspan="2"><img src="images/download_03.gif" width="780" height="39" border="0" usemap="#Map"></td>
  </tr>
  <tr>
    <td width="601" rowspan="5"><div align="center">
<?php
// +----------------------------------------------------------------------+
// | Last Modified: March 1, 2003                                        |
// +----------------------------------------------------------------------+
require("config.php");
require("functions.php");
$ffdb=new Ffdb;
$ffdb->StartTimer();
$tpl=new Templates;
$mysql=new Mysql;
$mysql->Connect();
require("online.php");
set_magic_quotes_runtime(0);
error_reporting  (E_ERROR | E_WARNING | E_PARSE);
if ($_REQUEST['action']!="download_agree" && empty($_REQUEST['login']) && $_REQUEST['action'] !="logout" && $_REQUEST['action']!="download_file") {
$online=new Online;
}
if ($_REQUEST['action']!="download_agree" && empty($_REQUEST['login']) && $_REQUEST['action'] !="logout" && $_REQUEST['action']!="download_file") {
$ffdb->Header($online->user_id);
}
$main=new Main;
class Main {
function Main() {
  global $online;
  // This is just the biggest mess I've ever seen :(
  if ($_REQUEST['action']=="category") {
  require("category.php");
  $category=new Category;
  }elseif ($_REQUEST['action']=="sub_category") {
  require("sub_category.php");
  $sub_category=new SubCategory;
  }elseif ($_REQUEST['action']=="file"
  || $_REQUEST['action']=="download_file"
  ||  $_REQUEST['action']=="download_agree"
  || $_REQUEST['action']=="rate_file"
  || isset($_REQUEST['rate_file'])
  || $_REQUEST['action']=="friend"
  || isset($_REQUEST['send_friend'])) {
  require("file.php");
  $file=new File;
  }elseif ($_REQUEST['action']=="register" || isset($_REQUEST['register'])) {
  require("register.php");
  $register=new Register;
  }elseif ($_REQUEST['action']=="login" || isset($_REQUEST['login']) || $_REQUEST['action']=="user_cp" || isset($_REQUEST['edit_profile']) || $_REQUEST['action']=="logout") {
  require("user.php");
  $user=new User;
  }elseif ($_REQUEST['action']=="online") {
  $online->OnlineList();
  }elseif ($_REQUEST['action']=="comments"
  || $_REQUEST['action']=="post_comments"
  || isset($_REQUEST['post_comments'])
  || $_REQUEST['action']=="delete_comments"
  || $_REQUEST['action']=="edit_comments" || isset($_REQUEST['edit_comments'])) {
  require("comments.php");
  $comments=new Comments;
  }elseif ($_REQUEST['action']=="stats") {
  require("stats.php");
  $stats=new Stats;
  }elseif ($_REQUEST['action']=="member" || $_REQUEST['action']=="send_email") {
  require("member.php");
  $member=new Member;
  }elseif ($_REQUEST['action']=="memberlist") {
  require("memberlist.php");
  $memberlist=new MemberList;
  }elseif ($_REQUEST['action']=="search" || isset($_REQUEST['search'])) {
  require("search.php");
  $search=new Search;
  } else {
  $this->FirstPage();
  }
}
function FirstPage() {
  global $tpl,$mysql,$online,$ffdb,$CONFIG;
//********************************************/
// Lets Setup our templates
//*******************************************/
$tpl->LoadTemplate("category_list_top","templates/$online->skin/category_list_top.tpl");
$tpl->LoadTemplate("category_list","templates/$online->skin/category_list.tpl");
$mysql->Query("SELECT * FROM ffdb_categorys WHERE active='Yes' ORDER BY display_order ASC");

while ($show_category=mysql_fetch_array($mysql->result_id)) {
  $ffdb->strip_array($show_category);
  // Just giving the template it's much needed variables
  $category_list_array = array(
  'category_name'=> $show_category[category_name],
  'category_description'=> $show_category[category_description],
  'num_files'=> $show_category[num_files],
  'num_sub_categorys'=> $show_category[num_sub_categorys],
  'category_id'=> $show_category[category_id]
  );
  $tpl->ParseTemplate("category_list",$category_list_array,"Yes");
  $has_category=1;
}
if (isset($online->username)) {
  $last_visit=date($CONFIG[date_format],$online->last_visit);
  $welcome_user="Welcome, $online->username your last visit was $last_visit";
}
$category_list_top_array = array(
  'welcome_user'=> $welcome_user,
);
$tpl->ParseTemplate("category_list_top",$category_list_top_array,"No");
$tpl->PrintTemplate("category_list_top");
if ($has_category==1) {
  $tpl->PrintTemplate("category_list");
}
$tpl->LoadTemplate("category_list_bottom","templates/$online->skin/category_list_bottom.tpl");
$tpl->ParseTemplate("category_list_bottom",$category_list_bottom_array,"No");
$tpl->PrintTemplate("category_list_bottom");
$online->MainOnline();
}
}
if ($_REQUEST['action']!="download_agree") {
$ffdb->Footer();
}
?>
</div></td>
    <td width="179" height="66" bgcolor="373737"> <div align="right"><img src="images/download_05.gif" width="179" height="66" align="top"></div></td>
  </tr>
  <tr>
    <td width="179" height="20" bgcolor="373737"> <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="179" bgcolor="373737">&nbsp;</td>
  </tr>
  <tr>
    <td width="179" height="20" bgcolor="373737">&nbsp;</td>
  </tr>
  <tr>
    <td width="179" bgcolor="373737"><img src="images/download_07.gif" width="179" height="131" border="0" usemap="#Map2"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="59,13,147,31" href="http://www.cson-line.com" target="_blank">
  <area shape="rect" coords="159,13,266,31" href="http://screen.cson-line.com" target="_blank">
  <area shape="rect" coords="277,13,335,31" href="http://forum.cson-line.com" target="_blank">
  <area shape="rect" coords="346,12,423,30" href="http://www.cson-line...agina=materias" target="_blank">
  <area shape="rect" coords="434,13,506,30" href="http://www.cson-line...pagina=contato" target="_blank">
</map>
<map name="Map2">
  <area shape="rect" coords="49,11,164,121" href="http://www.cson-line.com" target="_blank">
</map>



#5 cybermix

cybermix

    andrewsmedina.com.br

  • Ex-Admins
  • 3586 posts
  • Sexo:Não informado
  • Localidade:Não sou desse planeta não!!!!
  • Interesses:python, fireworks, linux, php, flash...

Posted 05/12/2003, 10:30

cara é so voce colocar isso no inicio

<?php ob_start() ?>

e isso no final do seu codigo

<?php ob_end_flush() ?>

B)
www.andrewsmedina.com.br

#6 Bart Simpson

Bart Simpson

    ...................

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Interesses:Counter-Strike e WebDesign!

Posted 05/12/2003, 14:33

cara é so voce colocar isso no inicio

<?php ob_start() ?>

e isso no final do seu codigo

<?php ob_end_flush() ?>

B)

de tudo?
ou do codigo php?

#7 Bart Simpson

Bart Simpson

    ...................

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Interesses:Counter-Strike e WebDesign!

Posted 05/12/2003, 18:38

vlw.........aí pessoal!!!!!!!! problema resolvido!!!




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq