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

Shall I disable short tags?

P: n/a
Hi

I am just starting with PHP. I am reading a PHP 5 book and they say to
not use short tags and to actually disable them so I see an error
message if I don't form my tags correctly.
"short_open_tag" is currently set to "on", shall I set it to "off"?
I am not planning on using short tags.

Thanks a lot

Patrick

Sep 15 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
varois83 wrote:
>
Hi

I am just starting with PHP. I am reading a PHP 5 book and they say to
not use short tags and to actually disable them so I see an error
message if I don't form my tags correctly.
"short_open_tag" is currently set to "on", shall I set it to "off"?
I am not planning on using short tags.
If you are not planing to use them you can disable them.

Bye!
Sep 15 '07 #2

P: n/a
On Sat, 15 Sep 2007 10:34:45 -0700, varois83 wrote:
Hi

I am just starting with PHP. I am reading a PHP 5 book and they say to
not use short tags and to actually disable them so I see an error
message if I don't form my tags correctly. "short_open_tag" is currently
set to "on", shall I set it to "off"? I am not planning on using short
tags.
Short tags can conflict with XML. It's always a good coding practice to
try to follow a standard, like the PEAR (pear.php.net) coding standards.

You can find some explanation on the following page:
http://www.sitepoint.com/blogs/2007/...-bad-php-code/
>
Thanks a lot

Patrick
- Jensen
Sep 15 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.