Autor Zpráva
aaa
Profil
rozbalim soubory do složky temp, zapíšu do db a pak je chci zkopírovat do složky files. v ten moment ale nastane chyba:

Warning: copy() [function.copy]: Unable to access file_to_extract_4.fla in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

Warning: copy(file_to_extract_4.fla) [function.copy]: failed to open stream: No such file or directory in /home/www/nasregion.cz/subdomains/test/zip.php on line 26
big_file_to_extract_3.psd


Warning: copy() [function.copy]: Unable to access big_file_to_extract_3.psd in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

Warning: copy(big_file_to_extract_3.psd) [function.copy]: failed to open stream: No such file or directory in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

file_to_extract_2.fla


Warning: copy() [function.copy]: Unable to access file_to_extract_2.fla in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

Warning: copy(file_to_extract_2.fla) [function.copy]: failed to open stream: No such file or directory in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

file_to_extract_16.fla


Warning: copy() [function.copy]: Unable to access file_to_extract_16.fla in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

Warning: copy(file_to_extract_16.fla) [function.copy]: failed to open stream: No such file or directory in /home/www/nasregion.cz/subdomains/test/zip.php on line 26

file_to_extract_6.fla


atd, atd...

kód je tady...

<?php
$zip = new ZipArchive;
$res = $zip->open('test.zip');
if ($res === TRUE) {
echo 'ok';
$zip->extractTo('temp');
$zip->close();
} else {
echo 'failed, code:' . $res;
}
$date = date(j.m.Y);
$d = dir("temp");
echo "Handle: ".$d->handle."<br>
";
echo "Path: ".$d->path."<br>
";
$dest = "temp/files";
while($entry=$d->read()) {
if(strlen($entry) > 2 && $entry != "files"){
echo $entry."<br>
";
echo '<div style="Display: none">';
mysql_query("insert into inzeraty_pdf values ('','".$entry."','".$date."');");
copy ($entry, $dest."/".$entry);
echo "</div>";
}
}
$d->close();
?>
WertriK
Profil
Není to nastavením prvá u těch vybalených souborů ?
Zkus u nich hned po rozbalení nastavit práva na 0777.
aaa
Profil
no, nejdou mi přesunout ani soubory který práva 777 maj... tak jsem si řikal jestli tam třeba někde nemám chybu...

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0