Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help before I scream

Status
Not open for further replies.

paulcarey

Programmer
Jun 15, 2001
45
GB
winzip32.exe -a -en c:\test.zip c:\strbud.txt

This is an example of what I want to call in a php page.
I call this from cmd.

How do I do this?

I am running Apache on Win2000 server where winzip32 is in /Bin.

If you want me to scream suggest that I run this on a poxy Linux box!!!!!

Many thanks

Pinhead

 
thanks I will.

go to phpbuilder.com and all you get is
<whine>
you should install linux
</whine>

thanks again
 
PHP manuals give me the hump, I'm not a natural programmer and can never make head nor tail of manuals until I get a grounding in a particular topic.

Is there anybody out there who can just give me some example code of a similar process, as similar a possible?

Many thanks
 
If you would bother to read the link I sent you, you would see a sample of example code. ______________________________________________________________________
TANSTAAFL!
 
as I said in my last post I couldnt understand it, something I have no problem admitting, which is why I need to see an example similar to my problem. I have been trying to sort this problem for weeks.

Maybe here's a chance for you to seem superior!
 
by the way I haave tried the way in the manual eg.

exec(&quot;/bin/winzip32.exe -a -en c:/program files/apache group/apache/bin/downloads/$name.zip c:/program files/apache group/apache/bin/downloads/$name&quot;);*/
 
Have your tried handing exec() the absolute path to the winzip32.exe program?

What error messages are you getting? ______________________________________________________________________
TANSTAAFL!
 
Yes I've tried absolute paths, all sorts of combinations but to no avail.

Apologies for my earlier petulant outburst. I seem to have been on this problem for ever and it's starting to bug me!

I'm going home now to take it out on my cat!

Thanks for trying to help and again sorry for earlier
 
It could also be the spaces in your pathnames. Try using either the short filenames in the path or putting the absolute filenames in the path inside quotes, while putting your entire string in single quotes:

exec('/bin/winzip32.exe -a -en &quot;c:/program files/apache group/apache/bin/downloads/'.$name.'.zip&quot; &quot;c:/program files/apache group/apache/bin/downloads/'.$name.'&quot;'); ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top