jonathansh1115
-
Posts
3 -
Joined
-
Last visited
Posts posted by jonathansh1115
-
-
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:
<?phprequire ('includes/config.inc.php');$page_title = 'Homepage';include ('includes/header.html');?><?phpinclude ('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"></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 -
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!
Php "include('header.html')" Wont Include Css Script Tag In Header.html
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted · Edited by jonathansh1115
in a folder call css
but actually i did it and got it done so thank you