Include php files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Include php files

Postby Buxykay » 14. October 2010 14:58

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.
Buxykay
 
Posts: 3
Joined: 14. October 2010 14:35

Re: Include php files

Postby Stepke-DSL » 14. October 2010 15:03

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
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Re: Include php files

Postby Buxykay » 14. October 2010 15:12

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.
Buxykay
 
Posts: 3
Joined: 14. October 2010 14:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 113 guests