Page 1 of 1

Include php files

PostPosted: 14. October 2010 14:58
by Buxykay
Hi, I am new to this board and I need help fast.

I installed xampp successfully on my localhost (windows XP) and works perfectly but I have a problem and thought it has something to do with configuring php.ini.

Here is the problem. when I include eg. <? include 'header.php' ?>, the header does not show up when I view it on localhost of my computer but when I upload to the server on my hosting plan it does show up. I need to see this as well as other included files for development purposes.

Please somebody help.

Thanks.

Re: Include php files

PostPosted: 14. October 2010 15:03
by Stepke-DSL
Hi,

Don't use shortopentags!

Use
Code: Select all
<?php include 'header.php'; ?>

instead of
Code: Select all
<? include 'header.php; ?>


Keywords: shortopentag

Regard Stepke

Re: Include php files

PostPosted: 14. October 2010 15:12
by Buxykay
Wow! Stepke-DSL! That was fast. I never thought I can get a reply so fast and a valuable one too. I just did what you told me to do and Bingo!

It's working. And thank you very much. I owe you one.