Miva Script

MivaScript

Miva Script is the server side scripting language of the Miva Merchant shopping cart, but it's uses go much further. It is especially well suited for web development having built in support for MySQL, MivaSQL and xBase3 databases.

A typical Miva Script application combines HTML tags, Miva Script tags and functions; is compiled and uploaded to a web server running the FREE Miva Merchant Empresa. You can also run your scripts on your local computer by running the FREE Miva Merchant Mia, making it very easy to start learning Miva Script right away. Oh and did we mention the Miva Script Compiler is also FREE.

Miva Script tags and functions correspond to typical programming language constructs. The database, mail, commerce and new graphics functionality provide a rich set of tools for application development.

Miva Script is fast. Because it is efficiently coded and compiled, your server side scripts will execute quicker and your web pages will display faster providing your users with a better experience.

Start learning Miva Script now!

Examples in Each Chapter

Each chapter contains examples that you can copy, paste and compile as you learn Miva Script.

Example

<html>
<body>

<b><MvEVAL EXPR="{ 'This is my first Miva Script' }"></b><br />

</body>
</html>

Whats New

Releases 5.17 and 5.18 are the most significant updates in several years and 5.20 continues to add to the Storemorph template compiler language. The list below is not comprehensive. See the release notes in Resources for more detail.

Most significant is the inclusion of the gd library graphic functions.

  • V 5.20
  • MvCALL uses HTTP/1.1
  • MivaSQL Added
    LENGTH() & BETWEEN
  • New in StoreMorph
    backslash in expressions
    mvt:foreachcontinue
    mvt:foreachstop
    mvt:whilecontinue
    mvt:whilestop
  • New API Functions
  • V 5.19 -- Minor fixes
  • V 5.18
  • diagtool.mvc executable -- debugging tool
  • new POST content type support
  • New in StoreMorph
    mvt:assign
    mvt:while
    mvt:eval
  • MvSMTP new parameters
  • MvASSEMBLY
  • crypto_hmac_md5()
  • miva_array_clear()
  • miva_array_delete()
  • miva_array_merge()
  • miva_array_copy()
  • miva_array_copy_ref()
  • miva_array_insert()
  • miva_array_insert_var()
  • miva_array_insert_ref()
  • miva_array_pop()
  • miva_array_pop_ref()
  • miva_array_shif()
  • miva_array_shift_ref()
  • miva_array_find()
  • miva_array_search()
  • miva_array_binarysearch()
  • V 5.17
  • New Operators. (++) and (--)
  • miva_sleep()
  • miva_hex_encode()
  • miva_hex_decode()
  • crypto_cipher_block_size()
  • crypto_cipher_key_length()
  • crypto_cipher_iv_length()
  • crypto_cipher_mode()
  • crypto_evp_encrypt()
  • crypto_evp_decrypt()
  • crypto_digest_block_size()
  • crypto_digest_size()
  • crypto_evp_digest()
  • crypto_evp_hmac()
  • crypto_xor()
  • crypto_pbkdf1()
  • crypto_pbkdf2()
  • rsa_generate_keypair_mem_cipher()
  • rsa_save_privatekey_mem_cipher()
  • V 5.16
  • mvcov executable -- script analysis tool
  • mvprof executable -- script profiling tool
  • V 5.15 -- Minor fixes
  • V 5.14 -- Major fixes
  • MvLOCALIZED
  • MvSMTP
  • MvFOR
  • MvCALL
  • MvDO
  • MvSMTP
  • MvDBCOMMAND
  • Multle Functions fixed
  • V 5.13
  • srandom( seed )
  • MvCall changes
  • V 5.12 -- Minor fixes
  • V 5.11 -- Minor fixes
    64 bit version available
  • V 5.10
  • substring_var()
  • len_var()
  • indexof()
  • indexofi()
  • file_read_bytes()
  • <MvFOREACH>
  • <MvFOR>
  • V 5.09
  • crypto_sha256()
  • crypto_hmac_sha256()
  • V 5.08
  • miva_openlog()
  • miva_closelog()
  • miva_setlogmask()
  • miva_writelog()
  • V 5.07
  • xml_parse_var()
  • xml_parse_set_colon_replacement()
  • miva_struct_members()
  • miva_array_sort()
  • miva_array_min()
  • miva_array_next()
  • miva_array_next()
  • miva_array_previous()
  • miva_template_compile_itemlist()
  • miva_template_compile_dump()

User Annotations:
Miva Merchant : mivascript at, pcinet d0t com
02/03/2011 17:12 p.m.
Users can comment and post examples of their scripts.
<b>Sample script: </b>