Wednesday, 15 May 2013

required - Cannot get my pc built php site to work on the web -



required - Cannot get my pc built php site to work on the web -

i have part built php site on pc. not want have blog style site, want add together single header, single navbar , single footer site, , start building login area later. built on pc , worked wonderfully when displaying in ie, chrome, firefox , safari, copied files test folder on existing website, , didn't work. got error message

fatal error: require(): failed opening required 'includes/navbar.php' (include_path='.:/usr/lib/php5.4')

in /homepages/11/d95668464/htdocs/test/projects.php on line 54 , haven't clue means.

the required 'includes/header.php , required 'includes/footer.php works correctly , in right place navbar doesn't show @ all. navbar.php code reads:-

<?php ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>my site's title</title> <link href="/styles/site.css" rel="stylesheet" type="text/css" /> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <section class="navigation" data-role="navbar"> <nav> <ul id="menu"> <li><a href="index.php">home</a></li> <li><a href="news.php">news &amp; events</a></li> <li><a href="projects.php>projects</a></li. <li><a href="contact.php">contact us</a></li> <li><a href="membership.php">join/renew</a></li> <li><a href="links.php">links</a></li> </ul> </nav> </section>

the code on page reads:-

<?php include "includes/navbar.php"; ?>

try link of href's right place.

right now:

<li><a href="index.php">home</a></li>

after:(example: desktop whatever folder may have index.php in. im assuming.)

<li><a href="desktop/index.php">home</a></li>

php required htdocs

No comments:

Post a Comment