467,907 Members | 1,104 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Shall I disable short tags?

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
  • viewed: 3952
Share:
2 Replies
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
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.

Similar topics

7 posts views Thread by varois83 | last post: by
reply views Thread by Lisa | last post: by
8 posts views Thread by prado | last post: by
7 posts views Thread by siara | last post: by
1 post views Thread by varois83 | last post: by
4 posts views Thread by Sony89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.