Beau Lebens wrote:


<?php is more reliable - you can configure a server to ignore "<?" as an opening PHP tag (short_tags i think the directive is from memory).
for compatibilities sake, you should always use the <?php tag in your coding, but if short tags are enabled, then technically the 2 are the same (both just define a block of PHP code)

For the 0.3 ASP programmers at WSG (I used to be one, but not anymore *grin* and I don't know how many there are here), when learning PHP, you can enable an ASP style of tag delimiter <% /* php code here */ %>. I've never used it myself, but I gather the shorttag vs specifying the full <%php rules still apply.

within httpd.conf / .htaccess the directive takes the form (i think)

php_admin_value asptags on|off

It's also available in php.ini and can be set using the ini_set() function

Although the feature seems utterly useless in my opinion. When using a
programming language, I believe that you should stay within the bounds
of the language syntax structure rather than modifying it to suit
another, let alone another language that I don't like. :)

--
/----------------------------------------------------------------------\
|Adam Carmichael, A+, 2xMCP (Windows 2000), Cert IV Helpdesk Admin     |
|[EMAIL PROTECTED]               /( _,-----,_ )\     _|  |_  /,||       |
|#1 Computer Services           \`/         \'/     _|  |_    ||       |
|BSD/UNIX Network Engineer        \ /o\ /o\ /        |  |    _||_      |
\----------------------------------------------------------------------/

*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************




Reply via email to