473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2011
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
1841
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 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...
6
1477
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 recompile.
3
2234
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 several class definitions, each in its own file) from which I wish to instantiate objects and test the classes in a simple console application with...
8
2105
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 = 20; } - yada yada Now lets say in my c# code I loop thru the Rules node of rules.xml, and I want to evaluate each rule, given an iTime that the...
3
1350
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 resolve this?
8
7056
by: suresh_C# | last post by:
Dear All, What is difference between Portable Executable (PE) file and a Assembly? Thanks, Mahesh
9
1786
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 price. These items should be added to the existing code without the code being needed to be recompiled or making minimum changes to the existing...
1
64030
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 article “How to Parse a File in C++”, we are actually mostly lexing a file which is the breaking down of a stream in to its component parts,...
1
2006
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 not used anywhere else. It seems to work without recompiling atleast one application. Would it work with other applications without recompiling? ...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7444
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7954
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
755
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.