Jump to content

[SOLVED] Include Not Working


steveangelis

Recommended Posts

<?  //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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.