Klokjis Posted February 27, 2006 Report Share Posted February 27, 2006 2 jautaajumi saradushies: 1) ja upload'o failu 1x un peec tam veel 1 failu ar tieshi taadu pashu nosaukumu, vai 2. failu paarkopees pa virsu?? 2) ar kaadu funkciju (PHP) var izdzeest failu.?!? Link to comment Share on other sites More sharing options...
bubu Posted February 27, 2006 Report Share Posted February 27, 2006 1) nē 2) unlink Link to comment Share on other sites More sharing options...
v3rb0 Posted February 27, 2006 Report Share Posted February 27, 2006 1) jā un nē - ko scripts darīs ar uplodoto failu tā ar būs. (ja domāts par tmp filename, tad nepārkopēs pa virsu) Link to comment Share on other sites More sharing options...
Klokjis Posted February 27, 2006 Author Report Share Posted February 27, 2006 a nevar noraadiit prosta ka lai kopee pa virsu, ja jau jaa un nee... vai arii tad otrs varianc ir - kopeejot pa virsu 1. komanda - izdzeest veco un 2. komanda - iekopeet ar taadu pashu name.?! Link to comment Share on other sites More sharing options...
v3rb0 Posted February 27, 2006 Report Share Posted February 27, 2006 var norādīt. ja negribi manuālī lasīt, tad vismaz parādi scriptu ar kuru uplodē :p Link to comment Share on other sites More sharing options...
Klokjis Posted February 27, 2006 Author Report Share Posted February 27, 2006 (edited) kaut kas uz to pusi edit: dooh! :) Edited February 27, 2006 by Klokjis Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 27, 2006 Report Share Posted February 27, 2006 ja faila nosaukums un paplasinaajums sakritiis tad vinsh rakstiis pa virsu.... netiek parakstiiti temp faili jo tiem foziski katram ir cits nosaukums... Tieshaam palasi tachu dokumentaaciju... Link to comment Share on other sites More sharing options...
Klokjis Posted February 27, 2006 Author Report Share Posted February 27, 2006 iztesteeju tochna ir taa ka var paarrakstiit pa virsu.. anyway... thx Link to comment Share on other sites More sharing options...
Klokjis Posted February 27, 2006 Author Report Share Posted February 27, 2006 reku jautaajums... smiekliigi jau izklausaas. bet ar standarta name iznaak, bet varbuut kaads var paliidzeet izskaidrot kaartiigi sho funkciju... // attels ir njemc no form'a $fails = 'attels'; $filename = '../images/preces/albumi/'.$_FILES[$fails]['name']; if (@move_uploaded_file($_FILES[$fails]['tmp_name'], $filename)) {}; $_FILES[$fails]['name'] << kursh sheit ir nosaukums failam, kuru upload'o? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 27, 2006 Report Share Posted February 27, 2006 (edited) Klokjis--> tu laikam esi izliecies? Panjem ainglu -latvieshu vardniicu un apskaties ko noziimee name? edit: nu kaadeelj neviens negrib domaat? peec. $filename = '../images/preces/albumi/'.$_FILES[$fails]['name']; uzliec echo $filename; un paskaties kas sanaaks.... Edited February 27, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
Klokjis Posted February 27, 2006 Author Report Share Posted February 27, 2006 (edited) ;)) Nu grey wolf, sorry... esmu, esmu izliecies! :D edit: dooh! :) bish tomeer nav taa kaa vajadzeetu. :D kjipa -> $filename= 'upload/'.$_FILES[$fails]['name']; if (@move_uploaded_file($_FILES[$fails]['tmp_name'], $filename)) to nosaukumu domaaju, deelj taa, ka it kaa vajag panjemt failu x.jpg (ko ievada formaa un $fails = 'input_file_name') un upload'ot kaa bilde.jpg un doma tam bija taada - kaa var upload'ojot rename'ot failu?! Edited February 27, 2006 by Klokjis Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 28, 2006 Report Share Posted February 28, 2006 Tad tā $_FILES[$fails]['name'] vietā iebāz to savu vēlamo vārdu i viss.. Link to comment Share on other sites More sharing options...
Recommended Posts