473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
2 4178
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: varois83 | last post by:
Hi I am fairly new to PHP/mysql and was reading an online tutorial and learned that my short tags weren't enabled. At this time I have no need for them, my setup apache/mysql/php runs on my PC...
0
by: Lisa | last post by:
I need to apply the HTML formatting tags and the French accented characters in a XML document. The XML is generated from a database that has HTML tags and French accented characters in the records....
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
8
by: prado | last post by:
I want to disable a table with javascript. In this table i have 'n' record and each record has 3 buttons. If you click a button does an action. I want to disable the all table. is there any way...
7
by: siara | last post by:
hello, I have a div which includes many others tags (a, input, any others links). How can I disable the whole div? I want to any of the included tags may not be enable. -- regards and...
1
by: jprimo | last post by:
Hi Everyone, I was wondering if anyone knew how to disable to span tags that appear in the place of ASP.NET labels ( <asp:Label ) after it has been processed by the server. I have a style sheet...
0
by: dhillarun | last post by:
Hi all, Problem (in short): Disabling the applet cache. Problem (in detail): I have developed an Applet application. I am creating the contents of the applet by reading a text file in...
1
by: varois83 | last post by:
Hi Shall I disable short tags in my phpinfo if I am not going to use them? short_open_tag is currently set to "on". Thanks a lot Patrick
4
by: Sony89 | last post by:
Hi guys. How can you enable short tags in your browser?
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.