Jump to content
php.lv forumi

mainiigie


sharps

Recommended Posts

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 by sharps
Link to comment
Share on other sites

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>
";
?>

Link to comment
Share on other sites

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");
  }
?>

Link to comment
Share on other sites

$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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...