steveangelis Posted April 11, 2009 Share Posted April 11, 2009 <? //for template if (isset($_GET['p'])) { $include = 'modules/' .$_GET['p'] . ".php"; include($include); } else { include('modules/home.php'); } ?> The code is simple and it has worked in the past but not now. I am running it off of this server: http://70.69.179.149/clan/ What that code does is load template files up from whatever the link is and if there is nothing in the url it loads the default home.php file. The home.php file contains just one word right now, which is 'Home' but it does not show up. I am using a WAMP server with this. Anyone know why it is not working? Link to comment https://forums.phpfreaks.com/topic/153673-solved-include-not-working/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 11, 2009 Share Posted April 11, 2009 Use full open php tags - <?php Link to comment https://forums.phpfreaks.com/topic/153673-solved-include-not-working/#findComment-807545 Share on other sites More sharing options...
steveangelis Posted April 11, 2009 Author Share Posted April 11, 2009 Now I feel like an Idiot. I knew it was something simple thank you. Link to comment https://forums.phpfreaks.com/topic/153673-solved-include-not-working/#findComment-807547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.