| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Rachel -
 
  Joined: 18 Jul 2003 Posts: 1 Location: London
  | 
		
			
				 Posted: Sat Jul 19, 2003 9:33 am    Post subject: Newbie cant get php to work | 
				      | 
			 
			
				
  | 
			 
			
				I installed abyss web server using the instructions and installed php following the instructions on http://www.aprelium.com/abyssws/php.html to the exact letter.
 
 
I tested out a php page I created in Dreamweaver as well as one I downloaded from a free scripts page and neither of these would work.
 
 
I followed the instructions on a previous post to create a file called phpinfo.php, I did this and it works fine which apparently suggests that php is working. so I then created a new file as below
 
 
<html>
 
<head>
 
<title>Untitled Document</title>
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
</head>
 
 
<body><?php include(nav.php); ?>
 
 
</body>
 
</html>
 
 
the error message I get on screen in internet explorer is this
 
 
Warning: Use of undefined constant nav - assumed 'nav' in C:\PROGRAM FILES\WEB_SERVER\ABYSS WEB SERVER\htdocs\php\inc.php on line 7
 
 
Warning: Use of undefined constant php - assumed 'php' in C:\PROGRAM FILES\WEB_SERVER\ABYSS WEB SERVER\htdocs\php\inc.php on line 7
 
 
Warning: Failed opening 'navphp' for inclusion (include_path='') in C:\PROGRAM FILES\WEB_SERVER\ABYSS WEB SERVER\htdocs\php\inc.php on line 7
 
 
 
Please could somebody help cause its driven me nuts  :?: | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Sat Jul 19, 2003 2:54 pm    Post subject: Re: Newbie cant get php to work | 
				      | 
			 
			
				
  | 
			 
			
				The error messages indicate that you have a syntax error in your page.
 
Change the PHP statement to 
 
 	  | Code: | 	 		  | <?php include("nav.php"); ?> | 	  
 
Notice the " " enclosing the file name. _________________ Support Team
 
Aprelium - http://www.aprelium.com | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		 |