Newbie cant get php to work

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Rachel
-


Joined: 18 Jul 2003
Posts: 1
Location: London

PostPosted: Sat Jul 19, 2003 9:33 am    Post subject: Newbie cant get php to work Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 19, 2003 2:54 pm    Post subject: Re: Newbie cant get php to work Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group