Home » Categories » Multiple Categories

How do I use short open tags in my PHP scripts?

Short open tags are not recommended in PHP scripts, as they can cause problems in some scripts.

As a result, if your scripts have the “<?” open tag rather than “<?php”, we recommend that you change them to “<?php”.  You should also remove the “?>” at the end of your file to stop the parser from output buffering.

If you do not want to edit all your scripts, an alternative solution (which is not recommended) is to add the following line to your php5.ini file:

short_open_tag=1

This will allow your scripts to work with short open tags.

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Where is the dictionary directory?
Added on Mon, Mar 16, 2015
What is Java and what can it do?
Added on Fri, Mar 13, 2015
What is the server path?
Added on Mon, Mar 16, 2015
What Java support is in place on your servers?
Added on Mon, Mar 16, 2015
Can I use a caching system such as Memcached or APC?
Added on Mon, Mar 16, 2015