SkyD Posted February 17, 2006 Author Report Share Posted February 17, 2006 (edited) <? if ($_POST['poga']) { //ja poga nospiesta. $r = rand(1223433572,9898791294); $saglabats = $_FILES['fails']['name']; $kur = 'faili/'.$r.''.substr(($saglabats),-4, 6).''; $temp = $_FILES['fails']['tmp_name']; $bilde = move_uploaded_file($temp, $kur); if ($bilde) { echo 'Fails ielādēts. Adrese: <b>'.$kur.'</b>'; } else { echo 'Fails netika ielādēts.'; } } Samociju kautko, varbūt kādam noder. [uploado failus]. // Vienkārš. Edited February 17, 2006 by SkyD Link to comment Share on other sites More sharing options...
SkyD Posted February 17, 2006 Author Report Share Posted February 17, 2006 (edited) Kur atrast, ka uploadojot bildi, uz tās uzlikt logo ? Edited February 17, 2006 by SkyD Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 17, 2006 Report Share Posted February 17, 2006 Pameklē tepat forumā bija par to ne vienu reizi vien :P Link to comment Share on other sites More sharing options...
SkyD Posted February 17, 2006 Author Report Share Posted February 17, 2006 Es zin, ka ir bijis, bet peec kadiem parametriem meklet. :D Nejau taa: "ieladejot bildi, lai uz bildes paradas logo" :DDDDD Link to comment Share on other sites More sharing options...
Klez Posted February 17, 2006 Report Share Posted February 17, 2006 uzkopee vienu bildi otrai virsuu :) Link to comment Share on other sites More sharing options...
SkyD Posted February 19, 2006 Author Report Share Posted February 19, 2006 (edited) how? + veel problēma. Vakar ar $temp = $_FILES['bilde']['tmp_name']; $bilde = $_POST['bilde']; $kur = 'bildes/'.$bilde.''; move_uploaded_file($temp, $kur); varēja ielādēt, šodien vairs nevar. Vēl apskatījos php.ini failu, un tur ;upload_tmp_dir = ir tukš. Tā jabūt? Vnk sakot echo $_FILES['bilde']['tmp_name']; vajadzētu kautko uzrādīt, bet nekā.. Edited February 19, 2006 by SkyD Link to comment Share on other sites More sharing options...
Kristabs Posted February 19, 2006 Report Share Posted February 19, 2006 <form enctype="multipart/form-data" ... Link to comment Share on other sites More sharing options...
Recommended Posts