Announcement

Collapse
No announcement yet.

html file - store in variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    html file - store in variable



    Hi Adam,

    There are several ways:
    1.) MvImport (if it's a local file)
    2.) MvCALL (if it's remote)=20

    Or=20
    3.) wget()+ sfcopy + MvImport (wget() only works in more recent versions =
    of
    EmpresaVM)

    In all cases you loop through the file and assign each line (or =
    callvalue)
    to the result of the previous iteration.=20

    4.) If you're using uncompiled mivascript, you can probably also use =
    MvDO
    directly, provided it's a local file

    Markus
    =20

    -----Original Message-----
    From: [email protected] =
    [mailto:[email protected]]
    On Behalf Of Adam
    Sent: Dienstag, 8. M=E4rz 2005 00:51
    To: [email protected]
    Subject: [mrc] html file - store in variable

    Very simply I want to grab the entire contents of a small html file and
    store it in a local variable. =20



    #2
    html file - store in variable



    Very simply I want to grab the entire contents of a small html file and
    store it in a local variable.


    Comment


      #3
      html file - store in variable



      Yes, Markus' answer is perfect. I would just add that you can also display
      HTML pages directly from a database with MvEVAL. Of course, it assumes, you
      store the HTML code into the database either manually (through an editor or
      a web interface) or programmatically - depending on what exactly you are
      trying to achieve.

      Additionally, MvDO can be used for displaying HTML pages in compiled
      applications too - you just need to run the file through the compiler
      (although it does not contain any Miva Script code)

      Ivo Truxa

      | http://miva.truxoft.com
      | Advanced Miva Merchant modules



      -----Original Message-----
      From: MvMarkus


      Hi Adam,

      There are several ways:
      1.) MvImport (if it's a local file)
      2.) MvCALL (if it's remote)

      Or
      3.) wget()+ sfcopy + MvImport (wget() only works in more recent versions of
      EmpresaVM)

      In all cases you loop through the file and assign each line (or callvalue)
      to the result of the previous iteration.

      4.) If you're using uncompiled mivascript, you can probably also use MvDO
      directly, provided it's a local file

      Markus




      Comment

      Working...
      X