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 can’t I run scripts uploaded by my additional FTP accounts?
Added on Fri, Mar 13, 2015
How do I upload a CGI script into my hosting account?
Added on Mon, Mar 16, 2015
What is PHP?
Added on Fri, Mar 13, 2015
What is JavaScript?
Added on Fri, Mar 13, 2015
Where is the dictionary directory?
Added on Mon, Mar 16, 2015