CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 {header} file not being included

Print topic Send  topic

Author Message
cabrera

Posts: 10
Posted: 05/05/2009, 3:52 PM

This is weird.

For each page of my site I have a {header} include, which is a separate HTML file with my site common header.

It works perfectly in my development machine, but as soon as I move the PHP and HTML generated files to a different server, I don't get my site header, instead of the HTML on that file, I get the "{header}" string in the browser, literarily, unprocessed.

Does anybody run into a simmilar problem before where includes don't get processed, but just printed?
View profile  Send private message
Gena

Posts: 591
Posted: 05/05/2009, 4:01 PM

It seems that you are trying to open html file instead of PHP file in your Web Browser.
OR your web server misconfigurated and shows html files first (instead of php files).
_________________
Gena
View profile  Send private message
DonP
Posted: 05/05/2009, 4:05 PM

Gena beat me too it: Hi,

Are you sure it's loading the PHP file or could it be loading the HTML
template instead? It is the PHP file that must be loaded. By default,
many servers are configured to look at index.html first, rather than
index.php, so you might need to make an adjustment to the settings.

Don (DonP)

cabrera wrote:
> This is weird.
>
> For each page of my site I have a {header} include, which is a separate HTML
> file with my site common header.
>
> It works perfectly in my development machine, but as soon as I move the PHP and
> HTML generated files to a different server, I don't get my site header, instead
> of the HTML on that file, I get the "{header}" string in the browser,
> literarily, unprocessed.
>
> Does anybody run into a simmilar problem before where includes don't get
> processed, but just printed?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
cabrera

Posts: 10
Posted: 05/05/2009, 4:08 PM

That was the problem, thank you!
View profile  Send private message
Gena

Posts: 591
Posted: 05/05/2009, 4:22 PM

:-)
_________________
Gena
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.