The Arcive of vBulletin Modifications Site. |
|
|
Use <?php, not <?
I was reading through the PHP5 readme (which is basically the same as PHP4's), and there's a comment stating that you should always use <?php instead of <? when opening a PHP block. The reason is that the shorthand <? can be disabled; although it isn't by default, you should always develop your code with that in mind. (of course I have to, now, also )
|
|
#2
|
||||
|
||||
|
Also <? is ASP but it is acceptable
![]() - miSt |
|
#3
|
|||
|
|||
|
Can't you even use <% in PHP? I've never tried, but I think I've read that somewhere...
|
|
#4
|
||||
|
||||
|
Quote:
<?php, <? and <script language="php"> |
|
#5
|
||||
|
||||
|
On no i got confused again. <% is asp but can work in php but its not recommended as its not supported by all coding environments. I need to read my book again. I'll be back with info
![]() - miSt |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
Yeo you can use <% but the ? sign is so much easier
|
|
#8
|
|||
|
|||
|
See? I was right, Steve...
I don't use <% and haven't seen it used, but I just knew I'd read that somewhere...
|
|
#9
|
||||
|
||||
|
Yep you definately can use <%
![]() - miSt |
![]() |
|
|