Re: Buxa Coding Guidelines
| From: | Per Jessen | Date: | Sun, 09 Sep 2007 17:56:25 +0000 |
| Subject: | Re: Buxa Coding Guidelines | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261876@lists.php.net to get a copy of this message | ||
brian wrote:
> Per Jessen wrote:
>> magoo wrote:
>>
>>>In their oppinion stuff like the short PHP init "<?" or inline echo
>>>"<?= $var ?>" is forbidden.
>>>Do you people code that strict?
>>
>> Yep. If you're using XHTML you have no other option.
>>
>
> If you're parsing XHTML that is choking on any instances of "<%" then
> you've got a problem with your script.
I'm not parsing it, apache does that.
An XHTML document will start with:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en">
<head>
/Per Jessen, Zürich