Re: Dreamweaver, PHP and XHTML compliance
From: Pedro Graca (hexkid_at_dodgeit.com)
Date: 12/13/04
- Next message: Pedro Graca: "Re: Problems sending arrays by form when type=checkbox"
- Previous message: effendi_at_epitome.com.sg: "Re: Session varibable problem, please help"
- In reply to: Captain Nemo: "Dreamweaver, PHP and XHTML compliance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Dec 2004 15:05:05 GMT
Captain Nemo wrote:
> However, this won't work in PHP, because as soon as it sees the '<?' it
> assumes that what follows is php code (and crashes).
>
> It's simple enough to add the line:
>
> <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; ?>
>
> at the top of your PHP pages, but then it won't work in plain HTML, so it
> can't go in the template. What we need is version 1 of the line in HTML
> docs and version 2 in PHP docs.
>
> Does anyone know the answer to this problem?
You could try "short_open_tag = off"
http://www.php.net/manual/en/ini.sect.language-options.php#ini.short-open-tag
-- Mail to my "From:" address is readable by all at http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## ** == TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>) may bypass my spam filter. If it does, I may reply from another address!
- Next message: Pedro Graca: "Re: Problems sending arrays by form when type=checkbox"
- Previous message: effendi_at_epitome.com.sg: "Re: Session varibable problem, please help"
- In reply to: Captain Nemo: "Dreamweaver, PHP and XHTML compliance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|