PHP Opening tag -- <? and <?php |
[eluser]foobarph[/eluser]
Hi CI guys, I have a quick newbie question (I tried searching about it the net and the forum but i cannot seem to find answer) How does '<?=$error ?>' work with CI and PHP? I mean, my PHP doesn't compile this stuff. Is there any substitute for me to make this work? Concrete examples are below. Quote:<?=form_open_multipart('upload/do_upload'); ?> Quote:<?php echo form_open_multipart('upload/do_upload'); ?> If there is a setting in my PHP file that I should change, please tell me. Thanks!
[eluser]foobarph[/eluser]
I will answer my own question: Set short tags to TRUE in config/config.php file http://ellislab.com/codeigniter/user-gui...e_php.html Oh brother..
[eluser]codex[/eluser]
[quote author="foobarph" date="1217599117"]I will answer my own question: Set short tags to TRUE in config/config.php file http://ellislab.com/codeigniter/user-gui...e_php.html Oh brother..[/quote] Do yourself a favour and don't use short tags. From php6 they will be deprecated. Ok, that time has yet to come, but it'll save you time then ;-)
[eluser]Tom Glover[/eluser]
[quote author="codex" date="1217627337"][quote author="foobarph" date="1217599117"]I will answer my own question: Set short tags to TRUE in config/config.php file http://ellislab.com/codeigniter/user-gui...e_php.html Oh brother..[/quote] Do yourself a favour and don't use short tags. From php6 they will be deprecated. Ok, that time has yet to come, but it'll save you time then ;-)[/quote] Not Quite, just found this on the net: Quote:Farewell <%
[eluser]codex[/eluser]
[quote author="WackyWebs.net" date="1217627581"][quote author="codex" date="1217627337"][quote author="foobarph" date="1217599117"]I will answer my own question: Set short tags to TRUE in config/config.php file http://ellislab.com/codeigniter/user-gui...e_php.html Oh brother..[/quote] Do yourself a favour and don't use short tags. From php6 they will be deprecated. Ok, that time has yet to come, but it'll save you time then ;-)[/quote] Not Quite, just found this on the net: Quote:Farewell <%[/quote] Nevertheless, <?php is still better practice than <?
[eluser]Scriptor[/eluser]
I read somewhere that they'll add <?php=...?>, since while they might not completely remove short-open, they do recommend against it. |
Welcome Guest, Not a member yet? Register Sign In |