When trying to run my code, it returns me that:
Cannot modify headers already sent
<?php 
 if(!isset($_SERVER['HTTP_REFERER'])){ 
 header("Location: http://www.example.com/1.php");
 }
?>
When trying to run my code, it returns me that:
Cannot modify headers already sent
<?php 
 if(!isset($_SERVER['HTTP_REFERER'])){ 
 header("Location: http://www.example.com/1.php");
 }
?>
 
    
     
    
    if you want to set a header you must not send any character before the command
header("Location: http://www.example.com/1.php");
remove all text before <?php open tag, for example che for spaces or return 
