On Thu, 20 Jan 2005 13:51:35 -0330, Paul <[EMAIL PROTECTED]> wrote:
> I have a template that I have created and am creating all my pages from
> that. I have named this file x.html but when I try and rename it to
> x.php, because I have some dynamic content on it, nothing displays. Any
> ideas why this happens ?

Well, everyone seems tobe giving very complicated answers, though I
think your problem may be more simple...

By 'nothing displays', do you mean the page renders blank? Are you
serving an xml prologue (<?xml.....) ?

If you answered yes to both of those, your problem is that you have
'short tags' enabled on your server. The first two characters of the
xml prologue are telling PHP that the rest of the page is PHP code
that it should parse... Everything goes pear-shaped from there.

Add this line to .htaccess to disable short tags.

php_flag short_open_tag off


HTH,
Andrew.
--------------------------------
http://leftjustified.net/
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to