schetty Posted January 30, 2013 Share Posted January 30, 2013 I have made a php based website in the past but now I have forgotten everything but I can't seem to make my header and footer show up on my index page!! www.cafeparasaude.com/index.php header: www.cafeparasaude.com/header.htm footer: www.cafeparasaude.com/footer.htm Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/ Share on other sites More sharing options...
Jessica Posted January 30, 2013 Share Posted January 30, 2013 Cool story bro. Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409148 Share on other sites More sharing options...
schetty Posted January 30, 2013 Author Share Posted January 30, 2013 I realize I am asking a dumb question.. but I still need help. Would appreciate it. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409161 Share on other sites More sharing options...
Jessica Posted January 30, 2013 Share Posted January 30, 2013 (edited) How do you expect us to help you? Can you fix my car? Here's a photo of it: (Yes, that is actually MY car. Truck. Whatever.) http://php.net/include Edited January 30, 2013 by Jessica Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409164 Share on other sites More sharing options...
schetty Posted January 30, 2013 Author Share Posted January 30, 2013 Is it possible to check the sources and see if it's a configuration problem or could knowing my server is 1and1 help? I don't know what I'm doing.. it's obvious right? Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409166 Share on other sites More sharing options...
Jessica Posted January 30, 2013 Share Posted January 30, 2013 (edited) Oh my god. Post your code. Nevermind. Your post says header.htm and footer.htm Your site's source is trying to include blank.php and footer.php. The biggest problem is it's not even processing the php. You need to talk to your host. Edited January 30, 2013 by Jessica Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409168 Share on other sites More sharing options...
schetty Posted January 30, 2013 Author Share Posted January 30, 2013 <? php include("http://cafeparasaude.com/blank.php"); ?> <? php include("http://cafeparasaude.com/footer.php"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409173 Share on other sites More sharing options...
PFMaBiSmAd Posted January 30, 2013 Share Posted January 30, 2013 Lazy-way short tags. Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409175 Share on other sites More sharing options...
schetty Posted January 30, 2013 Author Share Posted January 30, 2013 yes I thought I had messed up my header.htm coding but I don't understand how I have wordpress working perfectly fine on my server but it won't take my php script? Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409176 Share on other sites More sharing options...
Jessica Posted January 30, 2013 Share Posted January 30, 2013 The opening tag for PHP is <?php. Not: <? php Your server does not have short tags on, so it's reading it as html. Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409182 Share on other sites More sharing options...
schetty Posted January 30, 2013 Author Share Posted January 30, 2013 I changed the encoding to utf-8 it was on utf-16 because of portuguese characters and now it works!! Thank you for all your help and taking the time! Quote Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.