dink87522 Posted November 30, 2010 Share Posted November 30, 2010 Sorry if this is a stupid question 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. Quote Link to comment https://forums.phpfreaks.com/topic/220213-php-includes-work-except-on-top-domain/ Share on other sites More sharing options...
mikecampbell Posted November 30, 2010 Share Posted November 30, 2010 If you look at the source for http://www.dinksoftware.com/fig/ and http://www.dinksoftware.com/fig/index.php they're not identical. Quote Link to comment https://forums.phpfreaks.com/topic/220213-php-includes-work-except-on-top-domain/#findComment-1141268 Share on other sites More sharing options...
dink87522 Posted November 30, 2010 Author Share Posted November 30, 2010 ? There is only one idnex.php. The source is different as the php includes aren't working there for some reason. Quote Link to comment https://forums.phpfreaks.com/topic/220213-php-includes-work-except-on-top-domain/#findComment-1141289 Share on other sites More sharing options...
dink87522 Posted November 30, 2010 Author Share Posted November 30, 2010 Wait, I see what you mean. Even a couple of sentences in the body are different. How can that be though, I only have one index.php (no index.htm or anything else either) in there??? Quote Link to comment https://forums.phpfreaks.com/topic/220213-php-includes-work-except-on-top-domain/#findComment-1141291 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.