Jump to content

dingdong1

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

dingdong1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. my menu dont work in internet explorer CSS /* /// NAVIGATION & DROPDOWN /// */ nav ul li { display: inline-block; } li { list-style-type: none; } nav li:hover { position: relative; } nav li a { color: #666; text-decoration: none; padding-right: 25px; display: block; font-size: 18px; } nav li ul { background-color: #F9F9F9; border: 1px solid #EEE; margin-top: 0px; display: none; padding: 15px 0px 0px 0px; } nav li:hover ul { display: block; position: absolute; } nav li ul li a, #nav li ul li a:hover { color: #000; width: 230px; padding-left: 15px; } nav li ul li a:hover { text-decoration: none; } HTML <nav> <ul> <li class="active"><a href="<?php echo $url; ?>">HOME</a></li> <li><a href="#">LINK</a></li> <li><a href="#">TEST</a> <ul> <li><a href="#">LINK1</a></li> <li><a href="#">LINK2</a></li> <li><a href="#">LINK3</a></li> </li> </ul> </li> <li><a href="#">TEST AGAIN</a> <ul> <li><a href="#">LINK1</a></li> <li><a href="#">LINK2</a></li> <li><a href="#">LINK3</a></li> </ul> </li> <li><a href="#">LINK</a></li> <li><a href="#">LINK</a></li> <li><a href="#">LINK</a></li>[/b] [b] </ul> </nav>
  2. didnt work last night maby i screwed up somewhere, anyway it worked now with include_once(dirname(__FILE__) . thank you.
  3. Im of to sleep now, if you can test it out or something and see if you can manage to fix the problem, i would very much apreciate it. if not i want to say thanks for all the help you gave me so far , even tho it didn't work out for me.
  4. its not working, i replaced all include_once(__DIR__ . with include_once(dirname(__FILE__) .
  5. well my wamp have 5.4.3, so it works fine on localhost 000webhost have PHP Version 5.2.17 so maby thats why, any solution?
  6. I tried again, but it just keep failing DEMO - Here you can see the errors index.php <?php include_once(__DIR__ . "/include/header.php"); ?> <?php include_once(__DIR__ . "/include/body.php"); ?> <h1>THIS IS INDEX</h1> <?php include_once(__DIR__ . "/include/footer.php"); ?> admin/ config.php <?php $title = 'DomainName'; $url = 'http://localhost'; $header = 'include/header.php'; $body = 'include/body.php'; $footer = 'include/footer.php'; ?> include/ header.php <?php include_once(__DIR__ . "/../admin/config.php"); ?> <html> <head> <title><?php echo $title; ?></title> <h1><a href="<?php echo $url; ?>">LOGO NAME</a></h1> body.php </head> <body> <nav> <ul> <li><a href="/music">Music</a></li> </ul> </nav> footer.php <footer> copyright © 2013 - <?php echo $title; ?> </footer> </body> </html> music/ index.php <?php include_once(__DIR__ . "/../include/header.php"); ?> <?php include_once(__DIR__ . "/../include/body.php"); ?> <h1>THIS IS MUSIC CONTENT</h1> <?php include_once(__DIR__ . "/../include/footer.php"); ?>
  7. Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/admin/config.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/username/public_html/index.php on line 1 line1 <?php include_once($_SERVER["DOCUMENT_ROOT"] . "/admin/config.php"); ?>
  8. Hi, i need some help with directory in php, everything works fine when i use wamp with localhost, but when i ftp my files to a webhost i get this error: Warning: include_once(/admin/root.php) [function.include-once]: failed to open stream: No such file or directory in /home/username/public_html/index.php on line 2 I think that I miss something in my config.php file, but Im not really sure how I can fix this since Im very new to PHP, I only need some basic PHP atm to make stuff easier for me. admin/config.php http://pastebin.com/hZWLJJ3D index.php http://pastebin.com/VFRKGNGX Appreciate all the help i get!
×
×
  • 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.