<div dir="ltr">Hi Smylers,<div><br></div><div style>The original reason was that "<?" means "Web server, pass this to your scripting host", "<?php" means "Web server pass this to your php interpreter".  This has kind of fallen by the wayside, however - short tags are not necessarily supported (they can and often are turned off in php.ini) and also as php is ostensibly a templating language it can be used for templating xml.  When in an xml file being parsed by a php interpreter, "<?xml" becomes interesting with short tags enabled.</div>

<div style><br></div><div style>There is another tag "<?=" which is slightly different as well - it is the same as typing "<?php echo" and as of 5.4, this is made distinct from short tags, but in 5.3 it comes under short tags, so disabling it in php.ini will disable both.</div>

<div style><br></div><div style>Cheers,</div><div style>--</div><div style>Martyn</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 April 2013 16:18, Smylers <span dir="ltr"><<a href="mailto:Smylers@stripey.com" target="_blank">Smylers@stripey.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Martyn Ranyard writes:<br>
<br>
> short codes are BAD!<br>
<br>
Hi Martyn. Out of interest -- why?<br>
<div class="im"><br>
> the correct way to tell a php interpreter that you want code to be<br>
> interpreted is "<?php".  Perhaps vim is discouraging this old bad<br>
> practice, try the following :<br>
><br>
> <?php // vim: ft=php nowrap ai et ic<br>
<br>
</div>Nope, Vim doesn't try to interpret the PHP in any way.<br>
<br>
Vim only cares about "vim:" at the top (or bottom) of a file and what<br>
follows it; anything before that gets ignored by Vim.<br>
<div class="im"><br>
> Also, worth noting that current best practice is to omit the final<br>
> "?>" at the end of the file, as that leads to random blank lines,<br>
> which end up in your output and causes output to happen often before<br>
> headers are sent by webservers.<br>
<br>
</div>Makes sense. Thanks.<br>
<span class="HOEnZb"><font color="#888888"><br>
Smylers<br>
--<br>
Stop drug companies hiding negative research results.<br>
Sign the AllTrials petition to get all clinical research results published.<br>
Read more: <a href="http://www.alltrials.net/blog/the-alltrials-campaign/" target="_blank">http://www.alltrials.net/blog/the-alltrials-campaign/</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Wylug-help mailing list<br>
<a href="mailto:Wylug-help@wylug.org.uk">Wylug-help@wylug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</a><br>
</div></div></blockquote></div><br></div>