[thelist] tabs or compressing dictionary lists

Jon Haworth JHaworth at witanjardine.co.uk
Wed Mar 21 04:09:37 CST 2001


Just to leap in here... you can always do

<?php echo "<". chr(63). "xml ......". chr(63). ">"; ?>

(I think it's 63 for an ASCII ?, although I may have got that wrong).

Turning short tags off helps for the "<?xml" at the start, but doesn't help
with the "?>" at the end, PHP interprets that as being the closing PHP tag
IIRC.


HTH
Jon



-----Original Message-----
From: T.Abbey [mailto:Abbey at abbeyink.com]
Sent: 21 March 2001 02:21
To: thelist at lists.evolt.org
Subject: Re: [thelist] tabs or compressing dictionary lists


At 08:56 PM 3/20/01 -0500, you wrote:
>one last question. . . php didn't like the <?xml ...?> declaration that's 
>supposed to go at the beginning of xhtml docs. . . nothing seems to mind 
>its removal, but i was wondering if anyone else has had to deal with this 
>and how. . . . ?

Heh -- that was my first and only real tip here at evolt. You can leave 
that line out and it will validate just fine. I have one e-pal that says he 
always uses it -- as part of a php include. I have another e-pal says it's 
the evil empire's doing.

Anyway, stick with the XHTML 1.0 Trans and pull that opening xml 
declaration that also, coincidentally, uses PHP's *short tag* and you 
should be fine.

Either that or talk to your sysadmin/host and see if they would happen to 
want to turn php short tags off or hunt around and see if there's a handler 
you can add to your htaccess file on a *nix server. (I don't know how to do 
that, that's just what I was told, so I pulled that opening line and 
validated).

Someday we may have to change it, but considering how much I've had to 
change in the last 6 mos -- heh, piece'o cake.

<tamara />


**********************************************************************
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**********************************************************************




More information about the thelist mailing list