PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Generating valid .zcfg config-file with php

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

  • Generating valid .zcfg config-file with php

    Hi there,
    We are using ZOOM search with our own php document-management suite.
    I know would like to offer customers the ability to customize some of the ZOOM search settings in a web-interface, using php and mysql.
    These customers don´t have access to the webserver and will not be able to manage the search engine using the ZOOM search indexer GUI.

    What i want is, to enable them for example:
    - to enable/disable and create their own categories
    - to enable/disable icons
    - to change some of the layout of their search-pages and so on...

    Therfefore i need to change/rewrite the .zcfg configfile for their index on demand.
    I think i pretty much understand what changes in the configfile are up to - my problem rather is to generate a valid utf-16 file using php as scripting lanugage...
    Any Ideas out there?

  • #2
    To anybody who might find this useful!
    You CAN create your own zoom search config files using php...
    After some hours of useless fileconversions I just found the right solution:
    1. store the config-string in a variable ($ascii).
    2. convert the ascii string into utf-16 using this line
    PHP Code:
    $unicode iconv('ISO-8859-15''UTF-16LE'$ascii); 
    3. write the new string ($unicode) into the config-file
    4. you´re done

    Comment


    • #3
      You might find it helpful to know that a full specification of the ZCFG file format is available as part of our Zoom SDK package.

      The ZCFG file format specification is a 40 page document which includes a list of all available parameters and values, a definition of the file format, information on the password encoding, and provided to help people who are generating their own ZCFG files.
      --Ray
      Wrensoft Web Software
      Sydney, Australia
      Zoom Search Engine

      Comment

      Working...
      X