| Author | 
					Message | 
				
				 
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/09/2004 14:53:05
	  
	
	
 						 | 
					
					
						
						
BravoGolf
 
	Newbie
	 
  
	Joined: 14/09/2004 14:44:07 
	Messages: 2
 
	Location: HeaphyDesigns Forum
	 
		Offline 
 						 | 
		
						
						
							
									Hi all, 
    I've tried to include the comments section into a poll I have a test page, located at http://www.heaphydesigns.com/specialrequestwithcomments.php
  
  For some reason, I am getting the following errors after the poll (where the comments section should be):
  
  Warning: main(/www/poll/db/include/config.inc.php): failed to open stream: No such file or directory in /home/darrenh/public_html/specialrequestwithcomments.php on line 110
  
  Fatal error: main(): Failed opening required '/www/poll/db/include/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/darrenh/public_html/specialrequestwithcomments.php on line 110
  
  The HTML code for the page is as follows (minus all the tables and stuff):
  
  
  
  Please do help if you can, I'm not really sure where it (or rather, me) is going wrong   
							
							
						 | 
					
						
							 HeaphyDesigns .:: Functionality over Design | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/09/2004 18:25:55
	  
	
	
 						 | 
					
					
						
						
Auron
 
	Expert
	 
		![[Avatar]](/forum/images/avatar/13803940053f323eaa510a6.jpg)  
  
	Joined: 23/06/2003 22:02:17 
	Messages: 1053
 
		Offline 
 						 | 
		
						
						
							
									
			
				BravoGolf wrote:Warning: main(/www/poll/db/include/config.inc.php): failed to open stream: No such file or directory in /home/darrenh/public_html/specialrequestwithcomments.php on line 110 
		 
  
  - Check to see if it is there
  
  
			
				BravoGolf wrote:Fatal error: main(): Failed opening required '/www/poll/db/include/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/darrenh/public_html/specialrequestwithcomments.php on line 110 
		 
  
  - Check chmod permissions and that the file is there
  
  Try this code...
  
  
  
  - Auron
							
							
						 | 
					
						
							 Visit my site @ www.ragnaru.com
 Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 15/09/2004 10:29:41
	  
	
	
 						 | 
					
					
						
						
Anonymous
 
  
 
 						 | 
		
						
						
							
									Thanks Auron.
  I checked the path for the PHP path, which I had specified (incorrectly) as:
  
  
  So I changed the path (correctly) to:
  
  
  This removed the errors:
  
			
  Warning: main(/www/poll/db/include/config.inc.php): failed to open stream: No such file or directory in /home/darrenh/public_html/specialrequestwithcomments.php on line 110
   
		 
  and
  
			
  Fatal error: main(): Failed opening required '/www/poll/db/include/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/darrenh/public_html/specialrequestwithcomments.php on line 110
   
		  
  as the path to them was now correct.
  
  Only, now I get the error:
  Fatal error: Cannot redeclare class polldb_sql in /home/darrenh/public_html/poll/include/class_mysql.php on line 10
  
  I'm not quite sure what the chmod file is, to be honest. So I assume that might be it? I was informed though that it should be set correctly...
  I'll check that though just in case....
  
  Any other ideas?
  
  Link is http://www.heaphydesigns.com/specialrequestwithcomments.php
  
  Source code is:
  
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 15/09/2004 15:27:03
	  
	
	
 						 | 
					
					
						
						
BravoGolf
 
	Newbie
	 
  
	Joined: 14/09/2004 14:44:07 
	Messages: 2
 
	Location: HeaphyDesigns Forum
	 
		Offline 
 						 | 
		
						
						
							
									Oops, last post was from me, forgot to log in....
							
							
						 | 
					
						
							 HeaphyDesigns .:: Functionality over Design | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 15/09/2004 17:35:17
	  
	
	
 						 | 
					
					
						
						
Auron
 
	Expert
	 
		![[Avatar]](/forum/images/avatar/13803940053f323eaa510a6.jpg)  
  
	Joined: 23/06/2003 22:02:17 
	Messages: 1053
 
		Offline 
 						 | 
		
						
						
							
									d'oh! I didn't notice the path there  
  
  The new error you have i can't remember how to solve it but i'm sure
  some1 has before. So a little search on it.
  
  Use this as the search string...
  
  
			Cannot redeclare class polldb_sql in 
		 
  
  Hope that helps.
  Auron.
							
							
						 | 
					
						
							 Visit my site @ www.ragnaru.com
 Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) | 
						
		
					 
						| 
						 | 
					
				
		
				
					| 
						
					 |