Nahratie viacerych obrazkov naraz

5 příspěvků

Archiv diskusního fóra

Fórum je uzavřené a slouží pouze ke čtení. Některé informace mohou být zastaralé.

  1. Na stranku si chcem dat viacej obrazkov. Ako by som mohla usetrit cas a stiahnut vsetky obrazky naraz na server? po jednom sa mi nechce ich stahovat. Prosim o radu. Dakujem
  2. Koukni sem http://www.webzdarma.cz/forum/read.php?f=6&i=2229&t=2229 Druhej prispevek zhora
  3. hallo, kukol som na tu Tvoju stranku a si narodena presne v ten den ako nase dvojcata. Nenarodila si sa nahodou na Sulekovej? Ak ano, tak sa poznas s mojimi detmi uz cely zivot. Ale k veci: ak chces rozbalit na stranke zip, tak si saveni tento script fileextract.php a ked ho nastartujes rozbali Ti ten zip na servri. Na webzdarma mi to chodi. <? function unzip($file, $path) { $zip = zip_open($file); if ($zip) { while ($zip_entry = zip_read($zip)) { if (zip_entry_filesize($zip_entry) > 0) { $complete_path = $path.dirname(zip_entry_name($zip_entry)); $complete_name = $path . zip_entry_name($zip_entry); if(!file_exists($complete_path)) { $tmp = ''; foreach(explode('/',$complete_path) AS $k) { $tmp .= $k . '/'; if(strlen($tmp) > strlen(getcwd())) { //produce only subdirs if(!file_exists($tmp)) { mkdir($tmp, 0777); } } } } if (zip_entry_open($zip, $zip_entry, "r")) { $fd = fopen($complete_name, 'w'); fwrite($fd, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry))); fclose($fd); zip_entry_close($zip_entry); } } } zip_close($zip); } } ?> <BODY> <? $zip_file_name=$_POST["name"]; if(strlen($zip_file_name) > 1) { $curdir = getcwd(); //unzip($curdir . "/tmp.zip",$curdir . "/"); unzip($curdir . "/" . $zip_file_name,$curdir . "/"); } ?> <form method="POST"> Filename: <input type="text" name="name" /> <input type="submit"> </form> </BODY>
  4. teraz vidim, ze to tu uplne zmenilo formatovanie. ak ten script chces v originale, napis mail a poslem ti ho.
  5. ...anebo pouzij FTP, a je to.

← Zpět na všechna témata