PDA

View Full Version : Can anyone run Miva Script?


zslates
08-27-08, 01:40 AM
Hello all,
I was informed by my host that anyone can run mivascript, but I've been trying to something very simple (in other languages) but cannot get it done....set a variable and output a variable. This is just a test to see whether it will execute.

<MvASSIGN NAME="g.test" VALUE="{'this is a string'}">

<MvEVAL EXPR = "{ g.test $ '<br>' }">

<!-- where l.str is a string containing any regular mivascript expression -->
<MvASSIGN NAME="l.str" VALUE="{toupper(g.test)}">

<MvEVAL EXPR="{ miva_variable_value('l.str') }">
I took this from another post.

I had always thought you had to be a "developer"....

Zack

eMediaSales
08-27-08, 02:08 AM
Ask your host what version of mivascript they provide. If v3 and below is uncompiled, and your .mv scripts should "just run". V4+ is compiled. You need the (free) miva script compiler to turn your .mv files into .mvc files to run. Look for the compiler download on the main mivamerchant.com website.

cheers,
James

zslates
08-27-08, 02:41 AM
I've been reading though the 30 pages here. I know i have mm5 (compiled)

I'm not used to "compiling" anything... I'm used to just writing and executing. I'm downloading the windows compiler version right now...but Im not sure if that the correct one as I'm on linux. Not sure if you compile locally and upload, or you use the program on the server and it places the file (?).

How does this hows process work? I code in my favorite text editor. somehow compile the script and upload it to the server?

More clarification is much appreciated.

Thx.

Dramatic
08-27-08, 03:29 AM
You choose the compiler version appropriate to your development computer (which I guess is why you chose windows). The fact that your server is Linux is irrelevant. You probably also want to grab Miva Mia for windows too: This will give you a test environment on your development PC and save you having to upload code to your production server every time you want to test.

zslates
08-27-08, 03:44 AM
Im trying to register the Compiler and type MVASM to find my user name and system name. I get "no input file specified.

http://docs.smallbusiness.miva.com/en-US/merchant/WebHost/webhelp/miva_script_compiler_5.htm

Am I doing something wrong?

zslates
08-27-08, 04:06 AM
NM just put anything behind mvasm and it will tell you.