Jump to content
Larry Ullman's Book Forums

jonathansh1115

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jonathansh1115

  • Rank
    Newbie
  1. i have some css tags in the header for my stylesheet and bootstrap and i tried to include the header.html as learnt from the book but it failed to load up instead it load up plain html. -My index.php: <?php require ('includes/config.inc.php'); $page_title = 'Homepage'; include ('includes/header.html'); ?> <?php include ('includes/footer.html'); ?> -My header.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo $page_title; ?></title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="nav.css" rel="stylesheet"> <script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script> </head> <body> <nav class="navbar navbar-default"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">WEBNAME</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="../index.php">Home</a></li> <li><a href="../pages.html">Recent</a></li> <li><a href="../posts.html">Posts</a></li> <li><a href="../users.html">Users</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Welcome</a></li> <li><a href="login.php">Logout</a></li> </ul> </div><!--/.nav-collapse --> </div> </nav> PLEASE HELP
  2. I installed everything from appendix A and tried everything people say but after i ran Apache, MySQL, Mercury, I went to chrome and type http://localhost:802/ (802 cus port 80 is used) and it give me this error " This site can’t be reachedlocalhost refused to connect. Search Google for localhost 802 ERR_CONNECTION_REFUSED " please help thank you!
×
×
  • Create New...