|
Posted by Alvaro G. Vicario on 08/22/06 21:53
*** news@celticbear.com escribió/wrote (22 Aug 2006 13:04:43 -0700):
> Now, that probably installs the library on the server, but I'll
> probably have to recompile PHP anyway, will I?
It seems so:
"In PHP 4 this PECL extensions source can be found in the ext/ directory
within the PHP source or at the PECL link above. In order to use these
functions you must compile PHP with zip support by using the
--with-zip[=DIR] configure option."
> I ask for any suggestions from people with personal experience in it
> because this is our production server, and I'd really like to know what
> to expect before I end up ruinging our PHP install. =)
It isn't difficult to recompile PHP from the *.src.rpm file. Just install
the source package:
rpm -ivh php.........src.rpm
Find the *.spec file:
cd /usr/src/redhat/....../SPEC/php.spec
Edit the file and add the "--with-zip" stuff. Then rebuild:
rpmbuild -ba php.spec
This generates several *.rpm files:
cd /usr/src/redhat/....../RPMS/php....rpm
You can do it in a test server. When installing, just keep the original
*.rpm in case you break something.
Second option, if you just need un unzip a file install the "unzip" RPM
package and then use system() or exec().
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
[Back to original message]
|