yes you can ...
check out this code
<?php
$filename = "../../temp/test.gz";
print "\n<head></head>\n<body>\n<pre>\n";
$filename2 = "ARIAL.TTF";
$fd = fopen ($filename2, "r");
$s = fread ($fd, filesize ($filename2));
fclose ($fd);
// open file for writing with maximum compression
$zp = gzopen($filename, "w9");
// write string to file
gzwrite($zp, $s);
print $intOutput;
// close file
gzclose($zp);
?>
but I am haveing a bigger problem ...
I want to automatically compress a complete folder and with Winzip or other tool to uncompress that folder with it all files without prompting me to enter there names ...
I hope that someone in this forum have the answer !
damisi
damisi