Hello,

fist of all I want to excuse me for my bad english. But I can't solve my
problem so I have to try it in english. I am working with PHP 4.2.3 and the
Apache-Webserver under Windows 2000. I am using the newest version of the
archive_tar-Class for the building of tar-Archives.

With the following script I get this error message: Invalid checksum : 2826
calculated, 19501 expected0


script archive_test.php

include("pear/archive/tar.php");
$tar_object = new Archive_Tar("tarname.tar", false);
$tar_object->setErrorHandling(PEAR_ERROR_PRINT);  // Optional error handling
$v_list[0]="edit.gif";
$v_list[1]="cms_img/";                              // Optional '/' at the
end
$tar_object->create($v_list);
$pics = $tar_object->listContent();
print_r($pics);


The result of the script is an tar-archive with a size of 32 KB. When I look
into this archive, there is just the gif-file edit.gif, and when I trie to
open it directly from the archive (with the picture-viewer acdsee) the
picture is totally warped.

The error appear since Imodified my Apache Configuration so that PHP is
running as an Apache Modul. And since this changeover the tar-Class doesn't
create any correct tar-Archive. When PHP ist running as CGI there is no
problem with the generation of tar_archives - with the same script!

So where I the error? Does the archive_tar-Class not work with php as on
apache-Modul on Windows 2000?

Please help me!

Yours sincerely

Timo



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to