| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			I am working on a page that uses a template.  The script has a series of ob_get_contents(); and ob_cleans() in which it imports other scripts. My problem is that if more than one of these scripts imports global.php, things blow up. But, if I remove the global.php call from all but one of them, things don't work. How can I include more than one script that itself includes global.php? Amy | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			bumping out of mild desperation.   Amy | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			In these scripts, instead of just doing: Code: require('./global.php');Code: if (!function_exists("getpostbit")) {
	include('./global.php');
} | 
| 
			 
			#4  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Thank you. You're a doll.   Amy | 
| 
			 
			#5  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Yup. I had the same problem trying to get a clock and other scripts included. I had to find away around the problem also. Includes can be tricky.     | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |