sharps Posted February 22, 2009 Report Share Posted February 22, 2009 (edited) Varbuut var man kaads paliidzeet? Ir sekojosh kods <? $IP = "192.168.0.1:21"; ... <td width=10%><a href=ftp://$IP/katalogs/".$line['Producer']."/".$line['PartNr'].".pdf <img src=/Pictures/File/PDF.GIF width=24 height=24 border=0 /></td> ?> kaa man mainiigo $IP iestarpinaat tabulas rindaa IP vietaa, lai tabulas ailiitee nospiezhot pogu vareetu korekti tikt liidz noraadiitam linkam? IP ievietojot cipariskaa formaa viss straadaa, bet nepiecieshams kaa mainiigais. Paldies Edited February 22, 2009 by sharps Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Īsti nesapratu, ko tu prasi. Kā izvadīt $IP mainīgā vērtību HTML kodā? echo "<a href='ftp://$IP/katalogs..."; Quote Link to comment Share on other sites More sharing options...
sharps Posted February 22, 2009 Author Report Share Posted February 22, 2009 Lūdzu nevajag taisīt bezjēdzīgas QUOTEs jaa <? echo" <table width=100% border=1> <tr> . . . <td width=10%><a href=ftp://IP/katalogs/".$line['Producer']."/".$line['PartNr'].".pdf target=_blank <img src=/Pictures/File/PDF.GIF width=24 height=24 border=0 /></td> </tr> </table> "; ?> Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Nu tad jau viss kārtībā - to var darīt tieši tā, kā es augstāk uzrakstīju. Quote Link to comment Share on other sites More sharing options...
sharps Posted February 22, 2009 Author Report Share Posted February 22, 2009 Lūdzu nevajag taisīt bezjēdzīgas QUOTEs paldies sanacaa. Quote Link to comment Share on other sites More sharing options...
sharps Posted February 23, 2009 Author Report Share Posted February 23, 2009 Ir veel kaada lieta. tiek pievienots fails. Atkariibaa no mainiigaa $folder fails tiek ievietots noteiktaa folderii. Ieprieksh uzraadiitais variants nestraadaa. Kaa to panaakt? <? if($_FILES["PDF"]["size"] > 1024*3*1024) { echo ("DOKUMENTS"); exit; } if(copy($_FILES["PDF"]["tmp_name"],"e:/UPLOAD/katalogs/$folder".$_FILES["PDF"]["name"])) { echo("Dokuments lejupieladets<br>"); . . . } else { echo("Lejupielade nenotika"); } ?> Quote Link to comment Share on other sites More sharing options...
marcis Posted February 23, 2009 Report Share Posted February 23, 2009 $dst="e:/UPLOAD/katalogs/$folder".$_FILES["PDF"]["name"]; echo $dst; // paskatamies vai patiešām ceļš ir derīgs if(copy($_FILES["PDF"]["tmp_name"],$dst)){ ... } Ja display_errors ir izslēgts, tad slēdz vien iekšā :) Quote Link to comment Share on other sites More sharing options...
sharps Posted February 23, 2009 Author Report Share Posted February 23, 2009 $dst="e:/UPLOAD/katalogs/$folder/".$_FILES["PDF"]["name"]; echo $dst; // paskatamies vai patiešām ceļš ir derīgs if(copy($_FILES["PDF"]["tmp_name"],$dst)){ ... } shii ideja straadaa. tik aiz taa $folder jaaliek veel /. citaadaak tiek iekopeets fails direktorijaa e:/UPLOAD/katalogs/ ar nosaukumu $folder+faila_nosaukums.pdf paldies Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.