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
Why is my custom php.ini file not working?
Added on Thu, Apr 9, 2015
How do I connect to MySQL with ASP?
Added on Thu, Feb 26, 2015
How do I connect to my MySQL database from my Perl script?
Added on Thu, Feb 26, 2015
What is Python?
Added on Fri, Mar 13, 2015
What is Perl and what can it do?
Added on Fri, Mar 13, 2015