Date Added: Monday 13th of April 2009 » Section: Web Development Tutorials

Enabling Short Tags in PHP

In this tutorial we look at how you enable short tags in PHP. Short Tags or short_open_tag as it is know in PHP.ini allows you the option to use short style opening tags for PHP code blocks e.g. <? instead of <?php.

To enable this feature on your server open PHP.ini file (this should be somewhere in your PHP install folder e.g.  /bin/php/phpx.x.x/php.ini) and change the short_open_tag setting to:

short_open_tag=On

Please note, it is not generally advised to use Short Tags as this can lead to future problems when migrating to server that doesnt have short_open_tag enabled. Personally I dont like this feature, it seems good at the time but trust me, there'll be a time where it comes back to haunt you.

Font Size: decrease the font size increase the font size
:

Random Photographs

Web Development Tips & Tricks

Web Development RSS Feed

God Bless The Internet

Web Development RSS Feed

The Fight Club Polls

Who'd win in a fight between Rambo and Rocky?

Rambo vs Rocky
Rambo
Rocky

Ramboscore 65%
Rockyscore 34%
269 votes so far...

Platform and Web Standards: W3C HTML 4.01 Standards W3C CSS 2.1 Standards Powered by PHP Powered by MYSQL RSS Valid Recommend Firefox Page copy protected against web site content infringement by Copyscape