- 
	
	
		
	
 
- 
	
	
		
		
			
				
				
				
					
 
					
				
				
						
						
				
					
						
							include 'file.php';
or 
require 'file.php';
In both cases it reads and executes the file, but include generates warnings in case of errors, whereas require generates fatal errors.
						
					 
					
				 
			 
			
			
				
				
				
				
					
And then there is Death
				
				
			 
			
			
		 
	 
		
	
 
- 
	
	
		
	
 
- 
	
	
		
			
			
				Ominous Wanderer
			
			
				Tech Admin
			
			
			
				
					
						
					
				
			
			
			
				
			
			 
			
				
				
				
				
				
					    
				
			
		 
		
			
				
				
				
					
 
					
				
				
						
						
				
					
						
							There is a difference between the two, although subtle...
include('file.txt') and require('file.txt') both include file.txt.
But if file.txt does not exist, require() will stop the php page execution, but include() only throws a warning and continues page execution.
Edit: oops, endless already said that...
						
					 
					
				 
			 
			
			
		 
	 
		
	
 
- 
	
	
		
	
 
		
		
		
	
 
	
	
	
	
	
	
	
	
	
	
	
	
		
		
			
				
				Posting Permissions
			
			
				
	
		- You may not post new threads
 
		- You may not post replies
 
		- You may not post attachments
 
		- You may not edit your posts
 
		-  
 
	
	
	Forum Rules