I found where the problem is...
It's strange... when I include these 2 function, the problem shows
Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\patcher\functions2.php:1) in F:\xampp\htdocs\patcher\functions2.php on line 176
It's strange... when I include these 2 function, the problem shows
Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\patcher\functions2.php:1) in F:\xampp\htdocs\patcher\functions2.php on line 176
| Code: |
| function hexToAscii($hex){
$strLength = strlen($hex); $returnVal = ''; for($i=0; $i<$strLength; $i += 2) { $dec_val = hexdec(substr($hex, $i, 2)); $returnVal .= chr($dec_val); } return $returnVal; } function func_replace($data, $replace) { $i = 0; while($replace[$i]) { if ($replace[$i]['on']) { $new = $replace[$i]['new']; $offset = hexdec($replace[$i]['offset']) + 0.5; $data = substr_replace($data, $new, $offset, strlen($new)); } $i++; } return $data; } |
