Slawe Posted May 2, 2007 Report Share Posted May 2, 2007 Luudzu iedodiet kaads scriptu ar kura paliidzibu vareeshu vnk uploadot failus uz sava servera. Piem. upl.php es izvelos failu , un vins tiek uploadots direktorija uploads. paldies. Link to comment Share on other sites More sharing options...
andrisp Posted May 2, 2007 Report Share Posted May 2, 2007 http://lv2.php.net/features.file-upload Link to comment Share on other sites More sharing options...
Slawe Posted May 2, 2007 Author Report Share Posted May 2, 2007 var paluugt jau gatavu :/ man tur neka nesanaca. es direktoris pats saliksu. paldies Link to comment Share on other sites More sharing options...
v3rb0 Posted May 2, 2007 Report Share Posted May 2, 2007 http://paste.php.lv/5501 Link to comment Share on other sites More sharing options...
king999 Posted May 2, 2007 Report Share Posted May 2, 2007 Vāks cik elementāri, es biju uzcepis reāli garu kodu, kas lai gan gāja tomēr mēdza dīvaini lagot, bet šis tiešām ir labs piemērs. Link to comment Share on other sites More sharing options...
andrisp Posted May 2, 2007 Report Share Posted May 2, 2007 king999, parādīsi ? Link to comment Share on other sites More sharing options...
ashais13 Posted May 9, 2007 Report Share Posted May 9, 2007 (edited) Bisk pameklee forumaa pie PHP un PHP :) es tur atradu vienu loti labu kas ma darbojas ideali!!! Edited May 9, 2007 by ashais13 Link to comment Share on other sites More sharing options...
king999 Posted May 9, 2007 Report Share Posted May 9, 2007 Tagad vairs nav ;), izdzēsu. Link to comment Share on other sites More sharing options...
aldis Posted May 10, 2007 Report Share Posted May 10, 2007 par upload scriptu te pedeja laika paprasa 3X nedeeljaa! un katru reizi tiek atbildeets.. kur ko dabuut... tad jaut...? kur probleema to atrast? Link to comment Share on other sites More sharing options...
ashais13 Posted May 10, 2007 Report Share Posted May 10, 2007 es jau tecu vnk sadaljaa PHP un PHP :) pie mekleesanas uzraksti upload un tur atradisi es atradu!! :) Link to comment Share on other sites More sharing options...
mamuC Posted May 13, 2007 Report Share Posted May 13, 2007 Izveidojam direktoriju, manā gadījumā Files! Tad uzcepam HTML formu, kur varam uploadot: <html> <head> <title>File Upload</title> </head> <body> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Izvēlies failu, kuru uploadot: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html> Tagad uzcepam PHP scriptu: <?php $target_path = "Files/"; $target_path = $target_path.$_FILES['uploadedfile']['name']; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "Fails ". $_FILES['uploadedfile']['name']." ir uploadots"; } else { echo "Kaut, kas nesanāca!"; } ?> Link to comment Share on other sites More sharing options...
Recommended Posts