PHP scripting tag always starts with <?php and ends with ?>. PHP scripting tag can be use anywhere in the document.
There are four sets of tags which can be used to denote blocks of PHP code. Of these, only two (<?php. . .?> and <script language=”php”>. . .</script>) are always available; the others can be turned on or off from the php.ini configuration file. While the short-form tags and ASP-style tags may be convenient, they are not as portable as the longer versions. Also, if you intend to embed PHP code in XML or XHTML, you will need to use the <?php. . .?> form to conform to the XML.
To activate recognition for short tags, you must make sure that the short_open_tag switch is set to On in php.ini:[Read More...]
No comments:
Post a Comment