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?
|
 |
 |
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 |
 |
 |
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!
|
 |
 |
Gena
Posts: 591
|
| Posted: 05/05/2009, 4:22 PM |
|
_________________
Gena |
 |
 |
|