[Wylug-help] vim line in PHP/HTML file
Gary Stainburn
gary.stainburn at ringways.co.uk
Tue Apr 16 16:24:54 UTC 2013
On Tuesday 16 April 2013 16:40:48 Martyn Ranyard wrote:
> Hi Smylers,
>
> 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.
>
> 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.
>
> Cheers,
I may well change that as I'm going along as there seem to be *many* changes
to the code I wrote for PHP on F9 before it will work on a F18 server.
Smyler gave me the answer. I added
set modeline
to /etc/vimrc
--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk
More information about the Wylug-help
mailing list