473,385 Members | 1,732 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,385 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 19 '05 #1
1 2008
Andy wrote:
[...]
a minimum I would prefer not to have the client recompile PHP with zip
support.
Why would any client (whatever you mean by "client") need PHP when running
Perl to begin with?
Does anyone know of a module that will parse zip files without any
prerequisites?
Did you check CPAN.org? What does a search for ZIP return?
Or just do a plain "perldoc Archive::ZIP", it might even be installed
already.
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.
Again, what does Perl have to do with PHP?
Also, is there any function that can be used to create a temp
directory with a unique name (equivalent of tempnam)?
Is there anything wrong with "mkdir()", details see "perldoc -f mkdir"?
And as far as temporary file names go: "perldoc -q temp" has some
interesting insights and suggestions.
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.


No idea what you are talking about. Why would you want to create a file
first, delete it, and then create a temp directory with the same name?
Anything wrong with creating the directory right away? After all,
directories are nothing but files in a special format.

jue
Jul 19 '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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.