By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,530 Members | 2,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,530 IT Pros & Developers. It's quick & easy.

Short Tags and XML

P: n/a
I have heard that you cannot use short tags and XML because of the opening
line of an xml document...

<?xml version="1.0"?>

Consider this:

<<?= '?'; ?>xml version="1.0"<?= '?'; ?>>

Problem Solved.

Best Regards,
Jason Garber
IonZoft, Inc.
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Jason G." <jason_NOSPAM@NOSPAM_ionzoft.com> a écrit dans le message news:
vh************@corp.supernews.com...
I have heard that you cannot use short tags and XML because of the opening
line of an xml document...

<?xml version="1.0"?>

Consider this:

<<?= '?'; ?>xml version="1.0"<?= '?'; ?>>

Problem Solved.


and if your php.ini has short_open_tags=off, and you can't modify it ? (for
example, an administrator very strict who doesn't allow you to modify
anything on the server...). The best way, IMHO, to resolve this problem is
to never use short open tag. Thus, it will always work.

Best regards,
Philippe
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.