Shall I disable short tags?
am 15.09.2007 19:34:45 von varois83
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
Re: Shall I disable short tags?
am 15.09.2007 19:45:15 von Anonymous
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!
Re: Shall I disable short tags?
am 15.09.2007 21:16:17 von Jensen Somers
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/05/25/good-and-bad-php-c ode/
>
> Thanks a lot
>
> Patrick
- Jensen