  
  PHP ver gevorderde | 
                         | 
                        Daar hoef je ook niet zó goed voor te zijn.. 
Maar kijk je doet dit: 
 
    
    
        
            
                
<?php include("../links.php"); ?>
             
            <?php include("../links.php"); ?> 
 
  
         
          
     
  
 
Je include ../links.php in forum/index.php en ik gok nu dat je in ../links.php ook je config.php include.. 
Dus dan include je hem 2 keer, en dan krijg je die error. 
Een voorbeeld. 
 
Dit is 1.php 
    
    
        
            
                <?php
include("config.php");
// content
?>
             
            <?php include("config.php"); // content ?> 
 
  
         
          
     
  
 
Dit is 2.php 
    
    
        
            
                <?php
include("config.php");
// content
include("1.php");
?>
             
            <?php include("config.php"); // content include("1.php"); ?> 
 
  
         
          
     
  
 
Wat 2.php nu eigenlijk doet is dit: 
 
    
    
        
            
                <?php
include("config.php");
// content
include("config.php"); // dit is de inhoud van 1.php
?>
             
            <?php include("config.php"); // content include("config.php"); // dit is de inhoud van 1.php ?> 
 
  
         
          
     
  
 
Zoals je ziet, 2 keer een config ge-include, dus 2 keer die functie die in de config staat.. |