<s>
Miva	B-Language
Script	I-Language
is	O
a	O
proprietary	O
computer	O
scripting	B-Language
language	I-Language
mainly	O
used	O
for	O
internet	O
applications	O
such	O
as	O
e-commerce	O
.	O
</s>
<s>
Many	O
web	O
hosting	O
companies	O
support	O
Miva	B-Language
Script	I-Language
on	O
their	O
servers	O
,	O
but	O
it	O
is	O
significantly	O
less	O
widespread	O
than	O
other	O
popular	O
web	O
languages	O
.	O
</s>
<s>
The	O
language	O
was	O
first	O
developed	O
under	O
the	O
name	O
HTMLScript	B-Language
by	O
Joe	O
Austin	O
and	O
others	O
in	O
1995	O
,	O
and	O
a	O
company	O
,	O
HTMLScript	B-Language
Corporation	O
,	O
was	O
formed	O
the	O
following	O
year	O
.	O
</s>
<s>
The	O
origins	O
of	O
Miva	B-Language
Script	I-Language
began	O
in	O
1993	O
when	O
David	O
Haldy	O
and	O
Joseph	O
Austin	O
built	O
the	O
first	O
version	O
of	O
HTMLScript	B-Language
.	O
</s>
<s>
The	O
first	O
version	O
was	O
written	O
in	O
the	O
programming	O
language	O
Perl	B-Language
,	O
which	O
was	O
called	O
Logic	O
Enhanced	O
HTML	O
(	O
LEHTML	O
)	O
.	O
</s>
<s>
Joseph	O
Austin	O
wrote	O
a	O
wrapper	O
for	O
it	O
in	O
the	O
programming	B-Language
language	I-Language
C	I-Language
that	O
let	O
it	O
start	O
off	O
as	O
a	O
root	O
process	O
and	O
then	O
downgrade	O
itself	O
immediately	O
to	O
the	O
ownership	O
and	O
permissions	O
of	O
the	O
owner	O
of	O
the	O
script	O
file	O
.	O
</s>
<s>
Perl	B-Language
allowed	O
self-executing	O
code	O
,	O
so	O
LEHTML	O
did	O
not	O
have	O
its	O
own	O
expression	O
analyzer	O
and	O
just	O
parsed	O
the	O
expression	O
into	O
Perl	B-Language
syntax	O
and	O
then	O
passed	O
it	O
into	O
Perl	B-Language
.	O
</s>
<s>
Volant	O
Turnpike	O
users	O
liked	O
using	O
LEHTML	O
,	O
so	O
Joseph	O
Austin	O
and	O
Ron	O
Ahern	O
wrote	O
an	O
expression	O
analyzer	O
and	O
re-implemented	O
the	O
LEHTML	O
syntax	O
in	O
the	O
C	B-Language
language	O
.	O
</s>
<s>
Joseph	O
Austin	O
called	O
the	O
end	O
result	O
HTMLScript	B-Language
and	O
registered	O
the	O
name	O
with	O
the	O
United	O
States	O
Patent	O
and	O
Trademark	O
Office	O
(	O
USPTO	O
)	O
.	O
</s>
<s>
Joseph	O
Austin	O
,	O
Troy	O
McCasland	O
and	O
Derek	O
Finley	O
were	O
the	O
founders	O
of	O
the	O
company	O
called	O
HTMLScript	B-Language
Corporation	O
.	O
</s>
<s>
HTMLScript	B-Language
did	O
not	O
have	O
the	O
concept	O
of	O
a	O
"	O
WHILE	O
"	O
or	O
"	O
FOR	O
"	O
loop	O
because	O
of	O
the	O
low	O
server	O
processing	O
power	O
at	O
the	O
time	O
.	O
</s>
<s>
So	O
,	O
Joseph	O
Austin	O
did	O
not	O
implement	O
a	O
loop	O
to	O
make	O
it	O
impossible	O
for	O
an	O
HTMLScript	B-Language
server	O
process	O
to	O
run	O
away	O
.	O
</s>
<s>
Also	O
,	O
he	O
implemented	O
the	O
macro	O
in	O
the	O
first	O
version	O
of	O
HTMLScript	B-Language
so	O
it	O
would	O
allow	O
self-executing	O
code	O
.	O
</s>
<s>
In	O
1997	O
,	O
Jon	O
Burchmore	O
extensively	O
rewrote	O
the	O
language	O
to	O
make	O
it	O
more	O
syntactically	O
consistent	O
,	O
although	O
the	O
new	O
engine	O
supported	O
both	O
old	O
HTMLScript	B-Language
and	O
new	O
(	O
named	O
mivascript	B-Language
)	O
syntaxes	O
.	O
</s>
<s>
Jon	O
Burchmore	O
rewrote	O
HTMLScript	B-Language
with	O
syntax	O
that	O
Joe	O
developed	O
with	O
the	O
help	O
of	O
SoftQuad	O
,	O
using	O
the	O
emerging	O
XML	B-Protocol
standard	O
.	O
</s>
<s>
The	O
new	O
end-product	O
supported	O
both	O
the	O
old	O
HTMLScript	B-Language
syntax	O
and	O
new	O
(	O
named	O
Miva	B-Language
Script	I-Language
)	O
syntaxes	O
.	O
</s>
<s>
On	O
October	O
14	O
,	O
1997	O
,	O
HTMLScript	B-Language
’s	O
name	O
was	O
changed	O
to	O
Miva	B-Language
Script	I-Language
and	O
the	O
company	O
name	O
was	O
changed	O
to	O
Miva	O
.	O
</s>
<s>
In	O
2002	O
,	O
the	O
Miva	B-Language
Script	I-Language
compiler	B-Language
was	O
delivered	O
,	O
and	O
the	O
HTMLScript	B-Language
syntax	O
and	O
macros	O
were	O
dropped	O
from	O
the	O
engine	O
.	O
</s>
<s>
Miva	B-Language
Script	I-Language
is	O
often	O
described	O
as	O
'	O
XML-like	O
'	O
although	O
this	O
is	O
something	O
of	O
a	O
misnomer	O
.	O
</s>
<s>
It	O
consists	O
of	O
tags	O
which	O
may	O
be	O
interspersed	O
with	O
HTML	O
and	O
XHTML	B-Language
and	O
which	O
all	O
start	O
with	O
<	O
Mv	O
.	O
</s>
<s>
Before	O
version	O
4.14	O
,	O
Miva	B-Language
Script	I-Language
was	O
interpreted	O
by	O
the	O
Miva	B-Language
Script	I-Language
engine	O
,	O
Empresa	O
.	O
</s>
<s>
Version	O
4.00	O
introduced	O
a	O
compiler	B-Language
,	O
boosting	O
performance	O
significantly	O
.	O
</s>
<s>
One	O
of	O
the	O
distinguishing	O
features	O
of	O
Miva	B-Language
Script	I-Language
is	O
the	O
native	O
support	O
for	O
a	O
variation	O
of	O
dBase	B-Application
database	O
platform	O
(	O
DBF	O
III	O
)	O
tables	O
with	O
a	O
proprietary	O
index	O
format	O
and	O
support	O
for	O
SQL	O
.	O
</s>
<s>
Many	O
installations	O
today	O
are	O
running	O
with	O
MySQL	B-Application
database	O
.	O
</s>
<s>
Miva	B-Language
Script	I-Language
uses	O
the	O
file	O
extensions	O
.mv	O
,	O
.mvc	O
,	O
and	O
.mvt	O
which	O
is	O
the	O
common	O
file	O
extension	O
for	O
runtime	O
compiled	B-Language
template	O
source	O
files	O
.	O
</s>
<s>
Empresa	O
is	O
the	O
underlying	O
engine	O
for	O
Miva	B-Language
Script	I-Language
.	O
</s>
<s>
In	O
versions	O
numbered	O
less	O
than	O
4.0	O
,	O
Miva	O
Merchant	O
Empresa	O
is	O
a	O
script	O
interpreter	O
available	O
for	O
web	O
servers	O
running	O
*	O
nix	O
and	O
Microsoft	B-Application
Windows	I-Application
operating	I-Application
systems	I-Application
.	O
</s>
<s>
Interpreted	O
Miva	B-Language
Script	I-Language
is	O
still	O
widely	O
supported	O
by	O
many	O
web	O
hosts	O
.	O
</s>
<s>
Versions	O
numbered	O
3.9x	O
are	O
a	O
transitional	O
form	O
of	O
the	O
language	O
,	O
implementing	O
some	O
(	O
but	O
not	O
all	O
)	O
of	O
the	O
new	O
features	O
found	O
in	O
version	O
4	O
,	O
such	O
as	O
arrays	B-Data_Structure
.	O
</s>
<s>
Since	O
4.0	O
,	O
Miva	O
Merchant	O
Empresa	O
is	O
a	O
Virtual	O
Machine	O
for	O
running	O
compiled	B-Language
Miva	B-Language
Script	I-Language
,	O
again	O
available	O
in	O
versions	O
for	O
*	O
nix	O
and	O
Microsoft	B-Application
Windows	I-Application
.	O
</s>
<s>
The	O
current	O
version	O
level	O
5.x	O
added	O
new	O
language	O
constructs	O
,	O
native	O
SQL	O
support	O
,	O
a	O
new	O
access-methodology	O
for	O
dbase3	O
tables	O
,	O
called	O
MIVA-SQL	O
,	O
and	O
a	O
new	O
templating	O
syntax	O
that	O
the	O
Empresa	O
virtual	O
machine	O
can	O
compile	B-Language
on	O
the	O
fly	O
.	O
</s>
<s>
Version	O
5.08	O
and	O
later	O
support	O
the	O
GD	B-Language
Graphics	I-Language
Library	I-Language
.	O
</s>
<s>
Miva	O
Merchant	O
Mia	O
is	O
a	O
version	O
of	O
the	O
Empresa	O
engine	O
designed	O
to	O
run	O
on	O
a	O
Windows	B-Application
PC	I-Application
as	O
a	O
localhost	O
server	O
watching	O
a	O
specified	O
port	O
,	O
usually	O
8000	O
or	O
8080	O
.	O
</s>
<s>
No	O
other	O
server	O
software	O
is	O
needed	O
unless	O
the	O
Post	B-Protocol
Office	I-Protocol
Protocol	I-Protocol
(	O
POP	O
)	O
and	O
SMTP	B-Protocol
functions	O
are	O
used	O
.	O
</s>
<s>
Like	O
Empressa	O
,	O
versions	O
pre-4	O
are	O
interpreters	O
while	O
post-4.0	O
work	O
only	O
with	O
compiled	B-Language
script	O
.	O
</s>
<s>
Miva	O
Merchant	O
Script	O
Compiler	B-Language
was	O
introduced	O
in	O
mid-2002	O
,	O
claiming	O
to	O
offer	O
better	O
performance	O
and	O
the	O
closure	O
of	O
application	O
source	O
code	O
.	O
</s>
<s>
Compilability	O
required	O
some	O
changes	O
to	O
the	O
language	O
,	O
with	O
support	O
for	O
the	O
old	O
HTMLScript	B-Language
syntax	O
and	O
macros	O
evaluated	O
at	O
runtime	O
(	O
often	O
considered	O
a	O
security	O
risk	O
)	O
dropped	O
.	O
</s>
<s>
The	O
compiler	B-Language
produces	O
a	O
platform-independent	B-Operating_System
bytecode	O
which	O
runs	O
on	O
the	O
Miva	O
Merchant	O
Empresa	O
and	O
Miva	O
Merchant	O
Mia	O
Virtual	O
Machines	O
Minor	O
variations	O
exist	O
between	O
Empresa	O
and	O
Mia	O
virtual	O
machines	O
.	O
</s>
<s>
In	O
May	O
2005	O
,	O
MIVA	O
Corporation	O
made	O
the	O
Script	O
Compiler	B-Language
available	O
free	O
.	O
</s>
<s>
Miva	B-Language
Script	I-Language
5.0	O
Introduced	O
the	O
a	O
page	O
template	O
compiler	B-Language
command	O
which	O
is	O
the	O
basis	O
for	O
Miva	O
Merchant	O
Storemorphtrade	O
;	O
page	O
template	O
system	O
.	O
</s>
<s>
This	O
compiler	B-Language
within	O
a	O
compiler	B-Language
offers	O
a	O
simplified	O
subset	O
of	O
the	O
full	O
language	O
,	O
more	O
suitable	O
for	O
end	O
user	O
creation	O
and	O
editing	O
of	O
web	O
page	O
templates	O
.	O
</s>
<s>
Storemorphtrade	O
;	O
pages	O
allow	O
modular	O
components	O
created	O
in	O
MivaScript	B-Language
,	O
to	O
be	O
added	O
to	O
a	O
template	O
extending	O
its	O
capabilities	O
.	O
</s>
