Jump to content

PHP includes work, except on top domain


dink87522

Recommended Posts

Sorry if this is a stupid question  :P

 

http://www.dinksoftware.com/fig/index.php looks as it should with the php includes working.

 

However if you go to http://www.dinksoftware.com/fig or http://www.dinksoftware.com/fig/ the php includes don't work for some reason.

 

index.php

<?php session_start(); ?>
<?php include('header.php'); ?>
<?php include('topMenu.php'); ?>
<?php include('sidenav.php'); ?>


<div id="content">
<h3>Introducing 'The Business Sim'!</h3>

<?php $errorMessage1 = $_SESSION['errorMessage1'];
echo("$errorMessage1 <p>");
$_SESSION['errorMessage1'] = ""; ?>

The Business Sim is an online, free to play educational game currently under development. <strong>The first round of gameplay will commence in Q1, 2011. </strong><br />
<p>Have gameplay ideas/suggestions or any other comments? Want to help mould the game? </p>

<br/>

<?php include('footer.php'); ?>
</div>
</body>
</html>

 

header.php part

(no other  includes or anything in this)

<a href="index.php"><img src="header.png" alt="The Business Sim" width="550" height="100" border="0"/></a>

 

How do I fix this? I want http://www.dinksoftware.com/fig and http://www.dinksoftware.com/fig/ to work like it does when you go/fig/index.php etc.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.