Welcome Guest, Not a member yet? Register   Sign In
Header problem[Fixed]
#1

[eluser]finord[/eluser]
I have a problem with a redirect, give me this error:

Quote:A PHP Error was encountered

Severity: Warning

Message: Header may not contain more than a single header, new line detected.

Filename: helpers/url_helper.php

Line Number: 541

The error only happend when i enter with SSL enabled.
This is the 'clt' function:
Code:
function clt(){
          $hoy = date("m.d.y His");
          $local=$this->db_session->userdata('id');
          if(isset($local)) {
          $hoy1=$hoy.$local;
          $hash=md5($hoy1);
          $datos= array(
           'hash' =>$hash,
           'local' =>$local,
           //'fecha'=>$fch,
          // 'hora'=>$hr,
           );

          if($this->cliente->crearCliente('pos_cln', $datos) == TRUE)  {
            $query=$this->cliente->obtenerCliente($db_table, $hash, $select);

          foreach ($query->result() as $row){$eclk = $row->clid;
            $sdata=$row->hor;}
            $sclk=$this->encrypt->encode($eclk);
            $clk=ereg_replace( "/", ":", $sclk );
             redirect('noi/in/'.$sdata.'/'.$clk, 'location', 301);
          }elseif($this->db->insert('db_tb_nm', $datos) == FALSE) { redirect('noi/in/'.$key, 'location', 301);}
                else{ echo "fallo"; }
                }else {echo "no esta logeado";}}

If anyone can help us, thx.
#2

[eluser]webnology[/eluser]
I think we need the view here.
#3

[eluser]finord[/eluser]
Hi, i fix it, the problem was with the server.

Thanks anyway for your attention




Theme © iAndrew 2016 - Forum software by © MyBB