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!

Ugent help needed

Status
Not open for further replies.

paulcarey

Programmer
Jun 15, 2001
45
GB
I am running Apache on Win2000.

This code doesn't work...why?

Exec("/bin/tar -cvf $name.tar $name");
Exec("/bin/gzip $name.tar");
Exec("rm $name");
Exec("rm $name.tar");
$name .= '.tar.gz';
echo &quot;Download filename = <font color=#'ff0000'>$name</font>&quot;;
echo &quot;<br><br>To begin downloading click <b><font color='#ff0000'><a href='$name'>HERE</a>&quot;;
}
I have tar.exe & gzip.exe in Bin/

Could there be a special version of tar & gzip for Win2000?

 
tar and gzip are unix commands. I don't know if there is an equivalent function (pkzip or WinZIP, I guess.

Looks like you got your code from a unix server and need to translate it to something that works on Windows. Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
That is correct. That script is written for UNIX environments. In order to make it run in a Windows environment, you will need to make it windows compatible.
I am probably wrong, but that looks like Perl. If it is, you'll need perl for windows like &quot;activeperl&quot;.


Don't forget to make sure your httpd.conf has the mod_perl and all that stuff...

Good Luck.
Hope I was of some help...
--OR--
Thanks for the help...
--Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top