Community Forums
Connect with us on LinkedIn
Community Notice
Closed Thread
Results 1 to 6 of 6
  1. #1
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,057

    Default problems with php zip_open

    Hello,

    I am trying to use following php script

    <?
    zip_open( "/home/user/public_html/test2/test.zip" );
    ?>

    but I receive this error

    Fatal error: Call to undefined function: zip_open() in /home/user/public_html/test2/test.php on line 2


    phpinfo() reports that ZLib Support is enabled
    (Compiled Version 1.1.3 / Linked Version 1.1.3 )

    What's wrong ?

    Thank you
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  2. #2
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    http://www.php.net/manual/en/ref.zip.php

    "Zip support in PHP is not enabled by default. You will need to use the --with-zip[=DIR] configuration option when compiling PHP to enable zip support."

  3. #3
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,057

    Default

    Originally posted by Juanra
    http://www.php.net/manual/en/ref.zip.php

    "Zip support in PHP is not enabled by default. You will need to use the --with-zip[=DIR] configuration option when compiling PHP to enable zip support."
    Thank you . And I was wrong zlib has nothing to do with zip support.
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  4. #4
    yYy
    yYy is offline
    Registered User
    Join Date
    Jul 2003
    Posts
    1

    Default Installing zip support into PHP through Web Host Manager?

    I have also ran into this problem in which I need to reinstall php with support for zip. I have installed the zzip libraries (manually installing rpm) as required by the zip support and would like to use the Web Host Manager to install this instead of manually recompiling everything. The problem is that adding this support is not an option in the Web Host Manager for the "Update Apache" and PHP section.

    How might I make this option available here?

    If it is not possible to make this option available in Web Host Manager, then what is the best way to reinstall PHP, apache, etc with the zip support enabled, such that I don't accidently remove current settings of the web server?
    Last edited by yYy; 08-23-2003 at 02:40 AM.

  5. #5
    Member
    Join Date
    Feb 2005
    Location
    East Vancouver, BC, Canada
    Posts
    29

    Default Where's the beef?

    I have checked off the option in the cPanel apache build to install the "Zip" feature, and I have installed these RPM's:

    zziplib-0.13.38-1.2.el4.rf
    zziplib-devel-0.13.38-1.2.el4.rf

    I also recompiled Apache & PHP just to make sure that PHP recognized the zziplib-devel. Also, a file with phpinfo(); in it states that PHP was compiled with the option --with-zip. However, when I run a script with zip_open I get this message:

    Fatal error: Call to undefined function: zip_open()

    Anyone know how to solve this mystery? I have attempted the solutions presented in this thread, but unfortunatelty it did not solve my problem.

    Thanks.

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Please don't cross-post or dig up 3 year old threads.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. zziplib and PHP --with-zip support? (undefined function: zip_open())
    By cburchell in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-09-2007, 01:15 AM
  2. php 5.0.4 problems
    By cosmin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-24-2005, 03:35 PM
  3. Replies: 24
    Last Post: 01-13-2005, 03:04 AM
  4. php problems
    By ThaMATRiX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2004, 10:42 PM
  5. PHP problems
    By tris in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-27-2004, 04:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube