Zip file processing without recompiling PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy

    Zip file processing without recompiling PHP

    I am trying to create an OsCommerce plugin that parses a number of
    files and adds them to the catalog.
    I need some method of transferring the files to be parsed to the
    server with OsC.
    Ideally, I would like to send these as a zip file, but in order to
    keep the installation requirements and user knowledge requirements to
    a minimum I would prefer not to have the client recompile PHP with zip
    support.
    Does anyone know of a module that will parse zip files without any
    prerequisites?
    I have searched google and usenet and not found anything useful.
    Everything seems to point to the Zip module which requires ZZiplib and
    recompilation of the PHP interpreter.
    Also, is there any function that can be used to create a temp
    directory with a unique name (equivalent of tempnam)? I would imagine
    that there are security concerns involved in creating a tempnam file,
    unlinking it and recreating a directory with the filename returned,
    although this would be preferred to some other method of creating a
    directory.

    Many thanks in advance for your assistance.

    Best Regards
    Andy
  • Chung Leong

    #2
    Re: Zip file processing without recompiling PHP

    Check out this article:
    http://www.zend.com/zend/spotlight/c...zip-files1.php. Although it's
    about creating ZIP files dynamically, the information is useful for writing
    code that performs the reverse process.

    Uzytkownik "Andy" <google.20.andy j@spamgourmet.c om> napisal w wiadomosci
    news:b878bfae.0 401191005.59507 fce@posting.goo gle.com...[color=blue]
    > I am trying to create an OsCommerce plugin that parses a number of
    > files and adds them to the catalog.
    > I need some method of transferring the files to be parsed to the
    > server with OsC.
    > Ideally, I would like to send these as a zip file, but in order to
    > keep the installation requirements and user knowledge requirements to
    > a minimum I would prefer not to have the client recompile PHP with zip
    > support.
    > Does anyone know of a module that will parse zip files without any
    > prerequisites?
    > I have searched google and usenet and not found anything useful.
    > Everything seems to point to the Zip module which requires ZZiplib and
    > recompilation of the PHP interpreter.
    > Also, is there any function that can be used to create a temp
    > directory with a unique name (equivalent of tempnam)? I would imagine
    > that there are security concerns involved in creating a tempnam file,
    > unlinking it and recreating a directory with the filename returned,
    > although this would be preferred to some other method of creating a
    > directory.
    >
    > Many thanks in advance for your assistance.
    >
    > Best Regards
    > Andy[/color]


    Comment

    Working...