warnings - How to solve headers already sent by error in sqladmin.php on line 636 -


i need small on how solve error receive after submit data. data submit see error every time submit data "below"

array (     [0] => ../upload/tmp/eb56163c635cf89918baa7ed93b9adee_3.jpg     [1] => ../upload/tmp/eb56163c635cf89918baa7ed93b9adee_3.jpg.jpg     [2] => 91     [3] => 76     [4] => 92     [5] => 140     [6] => 91     [7] => 76 ) array (     [image] => resource id #203     [type] => 2     [width] => 500     [height] => 450 )  warning: cannot modify header information - headers sent (output started @ /home/mysite/admin/lib/debug.php:25) in /home/mysite/admin/lib/sqladmin.php on line 636 

/home/mysite/admin/lib/debug.php file below:

<?php   // dependencies   /** * description * * @param * * @return * * @access */ function printr($array , $die = false) {     echo "<table><tr><td><pre style=\"background-color:white\">";     print_r($array);     echo "</pre></td></tr></table>";      if ($die)         die(); }   /** * description * * @param * * @return * * @access */ function debug($array , $die = false) {     if ($_server["remote_addr"] != "127.0.0.1") { //      return "";     }      printr($array , $die); }     ?> 

to make easier: /home/mysite/admin/lib/sqladmin.php on line 636

header("location:" . $this->templates["generic_form"]->blocks["temp"]->replace(array_merge($_get,$_post)));                             exit; 

the header function expects nothing outputted before ran. printing arrays did or echoing error debug.php file (which seems case here), means output being written, , create conflict header. try removing it.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -