473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Jul 17 '05 #1
1 1832
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" <go*************@spamgourmet.com> napisal w wiadomosci
news:b8**************************@posting.google.c om...
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

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andy | last post by:
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...
6
by: Sezai Altınok | last post by:
is it possible to build a project without recompiling the forms like in FoxPro? i mean in foxpro when you make some changes even in the code part of a form you can see the effect without a...
3
by: Peter van der Goes | last post by:
I'll guess this has been addressed many times, but my finding skills (Google Groups, etc) seem to have failed me (not unheard of). Using VS.NET 2003 Pro, I have a multi file project consisting of...
8
by: Jason Shohet | last post by:
I want to build a rules engine in a rules.xml page. I was thinking it would look like this: - Rules - rule1 if (0 < iTime <= .5) { iFee = 15; } - rule2 if (.5 < iTime <= 1) { iFee =...
3
by: santanbo | last post by:
I am having trouble using UIP 2.0 in Whidbey beta 1. I get an exception in Assembly.Load function in UIP's GenericFactory.Create method and UIP doesn't start any task. Does anybody know how to...
8
by: suresh_C# | last post by:
Dear All, What is difference between Portable Executable (PE) file and a Assembly? Thanks, Mahesh
9
by: friendhouston | last post by:
Hi, Have a requirement where new items may be added later to an existing list of items. These new items may have new features but will need to contain minimum basic features like description and...
5
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
1
by: aryan | last post by:
Hi, I need to change the value of a const int variable defined in the header file of a library. The variable is used to dynamically set size of a char buffer within a class of the library. Its...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.