bridgette
12-08-2003, 08:13 PM
can some one help, when I call up the following index.php
at my webhost, it does not work...here is the link to the index.php index.php (http://ghostraders.com/index.php) and header file (http://ghostraders.com/inc/header.php) and footer (http://ghostraders.com/inc/header.php) files
thanks...Bridgette
Acecool
12-08-2003, 08:25 PM
You dont have php installed or enabled
namelayer
12-08-2003, 08:27 PM
Uhh, It shouldnt be spitting php out like that. Is it enabled? :confused:
Steven
12-09-2003, 02:33 AM
if u read the source he obviously in dreamwaver pasted the php in the design part of it
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style3 {font-size: x-small}
-->
</style>
</head>
<body>
<span class="style3"><?php <br>
include $_SERVER['DOCUMENT_ROOT']."/inc/header.php"; <br>
?> <br>
<p>Main Body Goes Here</p> <br>
<?php <br>
include $_SERVER['DOCUMENT_ROOT']."/inc/footer.php"; <br>
?> <br>
</span>
</body>
</html>
airnine
12-09-2003, 04:29 AM
I suggest doing only this:
<?php
include_once"inc/header.php";
include_once"inc/footer.php";
?>
it works for me...
Good luck
Airnine
AboveCenter
12-09-2003, 10:43 AM
Try creating a file with only the following code on it: <?php phpinfo(); ?>. Save that file as info.php or something like that, upload it to your server and then load that page. If PHP is loaded on your server, then it should display all of the info about PHP and server variables and what is installed. If it doesn't work, then you don't have it installed.
airnine
12-09-2003, 01:06 PM
I give Bridgette a little more credit than the rest of you
don't you think, if somebody is into include statements, one knows, if php is enabled or not
it's like explaining to a mechanic who's thinking of ways to improve torque, that the car needs wheels...
blackbelt080
12-09-2003, 06:04 PM
Originally posted by airnine
I suggest doing only this:
<?php
include_once"inc/header.php";
include_once"inc/footer.php";
?>
it works for me...
Good luck
Airnine
That looks right to me. Give it a whirl!
bridgette
12-09-2003, 06:38 PM
Thank You all for the kind support....This is a great community......all your points are worthwhile...Yes, php is already enabled but I nevertheless checked again... I got it to work by restarting DW, create new php, copied and pasted the contents, saved them again, it worked this time....No other changes....it would appear to have to do with DW not recognizing these to be php files....
Thanks to all of you for helping....
I now can move up to the same issue of How do I create two different columns, the left menu bar, and the content area using php, DIV tags and CSS
Kindest Regards
blackbelt080
12-09-2003, 06:53 PM
Originally posted by bridgette
Thank You all for the kind support....This is a great community......all your points are worthwhile...Yes, php is already enabled but I nevertheless checked again... I got it to work by restarting DW, create new php, copied and pasted the contents, saved them again, it worked this time....No other changes....it would appear to have to do with DW not recognizing these to be php files....
Thanks to all of you for helping....
I now can move up to the same issue of How do I create two different columns, the left menu bar, and the content area using php, DIV tags and CSS
Kindest Regards
I am glad *we* could help :)