(01-07-2018, 07:10 PM)djavinash Wrote: Dude Make sure you dont have any emply line before the coding
Just check whether your <?php tag starts from 1st line
If you have some emplty lines before the start of php tag then remove it and then check.
Also if you used 'echo' or 'print' command then also remove it because header and echo cant work at same time
I also stucked in such situation
and it will work for sure
yes sir.. i've use that tag <?php end ?>
can you fix my code please sir.. help me..
<?php
/**
* @Version 3 (wml 1.2 EN)
* @Description (Should Be Now working On All Servers)
*/
$status=file('../text/bannames.txt');
for ($ri=0; $ri<count($status); $ri++)
{
$resultban=rtrim($status[$ri]);
if($nimi=="$resultban"){$admin="5";}
}
if($admin=="5"){
header ('Location: ../tools/yourbanned.php');}
$status=file('../text/bootnames.txt');
for ($ri=0; $ri<count($status); $ri++)
{
$resultboot=rtrim($status[$ri]);
if($nimi=="$resultboot"){$admin="6";}
}
if($admin=="6"){
header ('Location: ../tools/yourbooted.php?nimi=$nimi');}
$status=file('../text/bannames.txt');
for ($ri=0; $ri<count($status); $ri++)
{
$resultipban=rtrim($status[$ri]);
if($nimi=="$resultipban"){$admin="8";}
}
if($admin=="8"){
header ('Location: ../tools/yourbanned.php');}
?>
please fix this code.. help me sir..