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 :p) |
Also <? is ASP but it is acceptable ;)
- miSt |
Can't you even use <% in PHP? I've never tried, but I think I've read that somewhere...
|
Quote:
<?php, <? and <script language="php"> |
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 |
Quote:
|
Yeo you can use <% but the ? sign is so much easier ;)
|
See? I was right, Steve... :D I don't use <% and haven't seen it used, but I just knew I'd read that somewhere...
|
Yep you definately can use <% :)
- miSt |
All times are GMT. The time now is 06:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|