473,387 Members | 1,745 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,387 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 4181
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.