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 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. 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. 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 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 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? 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 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. 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"); ?> 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. 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? 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. 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! Link to comment https://forums.phpfreaks.com/topic/273827-header-and-footer-issue/#findComment-1409187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.