|
|
|
| Пытаюсь:
<?
header("Content-type: image/png");
if ($zip = zip_open($file)) {
while ($zip_entry = zip_read($zip)) {
$zip_strukt = explode("/",zip_entry_name($zip_entry));
if ($zip_strukt[1] == "") { $x++; $zip_folder = $zip_strukt[0]; continue; }
if ($zip_folder == $zipfile) {
$zip_file[$x][0] = iconv ("CP866", "CP1251", $zip_strukt[0]);
if($zip_strukt[1] == "front1.png") { $im = imagecreatefrompng(zip_entry_read($zip_entry, zip_entry_filesize($zip_entry))); imagepng($im); }
}
}
zip_close($zip);
}
?>
|
Но где-то ошибка... пытался и imagecreatefromstring... не выходит! | |
|
|
|
|
|
|
|
для: kireyev
(27.09.2011 в 09:37)
| | Временно закомментируйте HTTP-заголовок, никаких сообщений об ошибке не выводится?
<?php
// header("Content-type: image/png");
?>
|
| |
|
|
|