Unzip and parse from XML to Html/XHTML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mihai123
    New Member
    • Mar 2007
    • 13

    Unzip and parse from XML to Html/XHTML

    I have a blob column with zips files (there are open office documents).

    Can I unzip the files in the column without create the file? or i need to create the file first.
    Is there a class with zip function that i can include in my script without a need to change the configuration in php.ini ?
    I want to unzip just a file named content.xml is that possible?

    And the last question is there an example of convert XML into HTML i didn't need something verry complex just few tags like <b> <table> <p> <font>
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    In order to unzip files you have to store them somewhere, even for temporary storage. After that you can pick up the unpacked files and save them in the definite place.

    When you, for whatever reason, cannot use the PHP ZIP functions HERE , there are a few zip/unzip classes around that you can use freely. Have a look at the Compression group of classes at www.phpclasses.org. A class that I'd recommend is Dunzip2.
    Originally posted by phpclasses.org
    This package can be used to pack and unpack files in ZIP archives.

    There is a class that can retrieve the list of packed files as well several types of file details, such as the uncompressed size, last modification time, comments, etc..

    The class can extract individual files, one at a time, specifying their file names, or extract all at once into a given directory.

    There is another class that can pack files into new ZIP archives.

    The classes use the usual PHP file access functions and gzip extension functions.
    Ronald :cool:

    Comment

    • mihai123
      New Member
      • Mar 2007
      • 13

      #3
      Originally posted by ronverdonk
      In order to unzip files you have to store them somewhere, even for temporary storage. After that you can pick up the unpacked files and save them in the definite place.

      When you, for whatever reason, cannot use the PHP ZIP functions HERE , there are a few zip/unzip classes around that you can use freely. Have a look at the Compression group of classes at www.phpclasses.org. A class that I'd recommend is Dunzip2.

      Ronald :cool:
      I find the problem unzip need the full path to the zip file soo you need to use the function getcwd() and after this you need to add the zip file name.

      Comment

      Working...