elmas156 Posted September 14, 2008 Share Posted September 14, 2008 Hello everyone, I have the dynamics of my site completely finished and now I'm working on the design portion of it. What I want to do is have one page with my logo and a menu bar and add it to every page using include() or something similar. I've tried using the include but the only thing that is actually showing up is the background color... no logo. Can anyone tell me what I'm doing wrong and how to correct it? Here's what I have now. This is the basic page I want to include (head.inc.php): <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color: #FFFF66; } --> </style></head> <body> <div align="center"> <p><img src="logo.gif" width="672" height="153"></p> </div> </body> </html> Here's how I'm trying to include it on the page: <?php include("head.inc.php"); ?> Link to comment https://forums.phpfreaks.com/topic/124202-solved-including-a-heading-without-frames/ Share on other sites More sharing options...
peranha Posted September 14, 2008 Share Posted September 14, 2008 Is logo.gif in the same folder as these files, or is it in another folder? Link to comment https://forums.phpfreaks.com/topic/124202-solved-including-a-heading-without-frames/#findComment-641259 Share on other sites More sharing options...
elmas156 Posted September 14, 2008 Author Share Posted September 14, 2008 to make things simple, I keep everything in the same folder. Link to comment https://forums.phpfreaks.com/topic/124202-solved-including-a-heading-without-frames/#findComment-641262 Share on other sites More sharing options...
peranha Posted September 14, 2008 Share Posted September 14, 2008 just put this code on one page and see if it shows the image <img src="logo.gif" width="672" height="153" /> If you are using apache, check you apache error log and see what it tells you there, maybee it cant find the file for some reason, it isnt readable due to a htaccess file. Link to comment https://forums.phpfreaks.com/topic/124202-solved-including-a-heading-without-frames/#findComment-641268 Share on other sites More sharing options...
elmas156 Posted September 14, 2008 Author Share Posted September 14, 2008 You know, I just realized that an image displays much better on a web page if you actually upload it to the server. Boy do I feel dumb right now! Link to comment https://forums.phpfreaks.com/topic/124202-solved-including-a-heading-without-frames/#findComment-641276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.