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
Are ionCube and Zend Guard Loader installed on your servers?
Added on Mon, Mar 16, 2015
Is imagick available on your servers?
Added on Mon, Mar 16, 2015
Can I use command line arguments with a PHP scheduled task?
Added on Mon, Mar 16, 2015
How do I use gzip on my website?
Added on Mon, Mar 16, 2015
What file extensions will run PHP?
Added on Wed, Apr 8, 2015